• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Need help with OReilly File Upload API

 
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
    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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic