File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Need help with OReilly File Upload API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Need help with OReilly File Upload API" Watch "Need help with OReilly File Upload API" New topic
Author

Need help with OReilly File Upload API

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
I am using OReilly API's to upload files but facing some problems:

1. When two different files are uploaded with one name then its overwrite the previous file

2. Can I change the name of uploaded file before saving on the server

3. I just want to upload zip or rar format. Can I handle this with Orielly API?

4. Any solution to check virus before loading to server?

Thanks & best regards
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

    1. When two different files are uploaded with one name then its overwrite the previous file

This should not be surprising, unless the API specifically checks for the existence of a file with the same name.

    2. Can I change the name of uploaded file before saving on the server

Without a link to the API documentation it's difficult to know. That said, five seconds on Google led me to this.

    3. I just want to upload zip or rar format. Can I handle this with Orielly API?

Automatically? Sure doesn't look like it: can't you just check the name of the FilePart's file?

   4. Any solution to check virus before loading to server?

Not in the API itself; it's a multipart request parser, not an antivirus solution.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help with OReilly File Upload API
 
Similar Threads
For those who eat java, think java and drink java
save a file using jspsmartupload
java.io.FileNotFoundException
max size limit of file to be uploaded
How to change the File name before uploading it.