A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Products
»
Other Open Source Projects
Author
Need help with OReilly File Upload API
Farakh khan
Ranch Hand
Joined: Mar 22, 2008
Posts: 672
posted
Feb 10, 2010 02:48:13
0
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
I like...
posted
Feb 10, 2010 06:01:33
0
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://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Need help with OReilly File Upload API
Similar Threads
For those who eat java, think java and drink java
java.io.FileNotFoundException
How to change the File name before uploading it.
save a file using jspsmartupload
max size limit of file to be uploaded
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter