Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311670 - [upload] It should be possible to specify a maximum file size
Summary: [upload] It should be possible to specify a maximum file size
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Stefan Röck CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 04:32 EDT by Stefan Röck CLA
Modified: 2010-05-05 07:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Röck CLA 2010-05-05 04:32:32 EDT
As Apache Commons Fileupload supports this, the Upload Widget should expose API to set the maximum allowed file size.
Comment 1 Stefan Röck CLA 2010-05-05 07:46:40 EDT
fixed in CVS Head. New API:
// Set maximum file size to 50 kb
upload.getConfiguration().setFileMaxSize(50*1024);