commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <epr...@ptc.com>
Subject Re: [fileupload] example code problem
Date Thu, 20 Feb 2003 21:27:00 GMT


Gaston Escobar wrote:

> And this is the error my compiler throws:
> 
> UploadServlet.java:34: cannot resolve symbol
> symbol  : method getFileName  ()
> location: interface org.apache.commons.fileupload.FileItem
>         String fileName = fi.getFileName();
>                             ^
> 1 error

I haven't used FileUpload but there doesn't appear to be a method 
"getFileName()" in the "FileItem" interface of the FileUpload package. 
There is a "getName()" -- have you tried that instead?



Erik


Mime
View raw message