• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

file size before upload with Jakarta commons FileUpload

 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
    Bookmark Topic Watch Topic
  • New Topic