Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311670

Summary: [upload] It should be possible to specify a maximum file size
Product: [RT] RAP Reporter: Stefan Röck <stefan.roeck>
Component: RWTAssignee: Stefan Röck <stefan.roeck>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.3   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

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);