• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file size before upload with Jakarta commons FileUpload

 
Tina Desai
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
 
Chetan Parekh
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic