Home arrow static arrow Java Programming [Archive] - Help in mutlipart post FIle Upload using Apache FileUpload
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Help in mutlipart post FIle Upload using Apache FileUpload
This topic has 1 reply on 1 page.

Posts:15
Registered: 6/11/04
Help in mutlipart post FIle Upload using Apache FileUpload  
Jul 29, 2004 11:06 PM



 
Hi there,
I am using the FileUpload class of Apache and getting an issue when I try to write the multipart post data (file) into a physical disk on the server. I am attaching herewith the servlet code. The error I get when I compile the code is:

Information: 1 error

Information: 0 warnings

Information: Compilation completed with 1 errors and 0 warnings

C:\unzipped\commons-fileupload-1.0-src\commons-fileupload-1.0\src\java\FileUpload.java

Error: line (80) write(java.io.File) in org.apache.commons.fileupload.FileItem cannot be applied to (java.lang.String)

C:/unzipped/commons-fileupload-1.0-src/commons-fileupload-1.0/src/java/FileUpload.java:80: write(java.io.File) in org.apache.commons.fileupload.FileItem cannot be applied to (java.lang.String)

Any help would be greatly appreciated.
Thanks
John
 

Posts:14,142
Registered: 99-04-02
Re: Help in mutlipart post FIle Upload using Apache FileUpload  
Jul 30, 2004 7:59 AM (reply 1 of 1)



 
are you calling the writeFile method trying to pass a String instead of a File object?
 
This topic has 1 reply on 1 page.