Resticting Upload on Server Side Java (ID:5072)
Project Creator: |
tvm72
FC Member For 6004 Days
Credits 95 Completed Proj. Num. 5 / 34 Total payment USD 3,301.00 Avg Daily Online 0.01 h (From 21/5/2007) Available on MSN/Skype Yes Last Login 6/17/2009 Peers Rating 100.00% |
---|---|
Budget: | Not Sure/Confidential |
Created: | 10/24/2008 4:57:22 PM EST |
Bidding Ends: | 10/27/2008 4:57:22 PM EST ( Expired ) |
Development Cycle: | 3 Days |
Bid Count: | 1
|
Average Bid: | 60.00 |
Project Description:
We need to limit the upload maxium of 20 MB when someone tries to upload using UploadProfileMedia.vtl and to 3 MB for UploadProfileImage.vtl. Currently, UploadProfileImageController.jsp is supposed to do this an does not provide this capability. By improving Class ServletFileUpload with setFilesMax and using the FileSizeLimitExceededException exception if added properly should address this issue. The project is to accomplish this task. org.apache.commons.fileupload.servlet Class ServletFileUpload java.lang.Object extended by org.apache.commons.fileupload.FileUploadBase extended by org.apache.commons.fileupload.FileUpload extended by org.apache.commons.fileupload.servlet.ServletFileUpload setFileSizeMax public void setFileSizeMax(long fileSizeMax) Sets the maximum allowed size of a single uploaded file, as opposed to getSizeMax(). Parameters: fileSizeMax - Maximum size of a single uploaded file. See Also: getFileSizeMax() Class FileUploadBase.FileSizeLimitExceededException java.lang.Object extended by java.lang.Throwable extended by java.lang.Exception extended by org.apache.commons.fileupload.FileUploadException extended by org.apache.commons.fileupload.FileUploadBase.SizeException extended by org.apache.commons.fileupload.FileUploadBase.FileSizeLimitExceededException All Implemented Interfaces: java.io.Serializable css- contains stylesheets related sitelab - contains relevant .jsp templates - contians relevant .vtl files scripts- contains any possible javascript that is used package gtts - contains any java that may be involved |
|
Job Type | Java, JSP, Javascript, Other |
Attached Files: | 20081024165705.zip |