check size and format before FileUpload [message #1485046] |
Mon, 24 November 2014 00:54  |
Eclipse User |
|
|
|
Hi,
Can FileUpload plugins check the size and format of files before being uploaded on RAP3 final release in December? If yes, it'll be wonderful, if not, are there any alternative methods doing that?
Thank you!
Best Regards,
David
|
|
|
|
Re: check size and format before FileUpload [message #1490144 is a reply to message #1485411] |
Fri, 28 November 2014 00:38   |
Eclipse User |
|
|
|
Hi, Ivan,
Thank you, I tried setFileSizeMax and it works, but a little pessimistic because users still have to wait until uploading proceeds and fails, if it stops in the very beginning of uploading, could be better, that can reduce server loading and boost efficiency!
Uploading seems to be processed inside org.apache.commons.fileupload.servlet.ServletFileUpload, is it possible to show a message when file size exceeded ? if yes, how or where to put the message code?
Best Regards,
David
[Updated on: Fri, 28 November 2014 02:26] by Moderator Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03793 seconds