• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Tick check! Okay, I guess that was just an itch. Oh wait! Just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic