• 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

file size before upload with Jakarta commons FileUpload

 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we check the file size before upload starts? We can set the max limit but can I do something like check if the file is of some size before the actual upload starts?

I am using Jakarta Commons FileUpload.

Regards,
Tina
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tina, you can�t determine the size of the file before you upload it.

You have an alternative to use Applet for uploading, where you can determine the size of the file before uploading. But you need signed applet for that. Problem is in this solution that, if you sign applet for MS JVM, it will not work with Sun JVM � and same is true for opposite.
 
reply
    Bookmark Topic Watch Topic
  • New Topic