OK I will add this code.
On Sun, Sep 4, 2011 at 19:42, [email protected] <[email protected]>wrote: > Hi Maxim, > > I think it might be usefull to add a Config-Variable somewhere > *max_upload_size* > > So that you can change those vals without need to recompile the > application. > What do you think? > > You could easily add this to the table *configurations* and read the value > from that. > The only other File to change would be the usual UploadHandlers. > > Sebastian > > 2011/9/4 <[email protected]> > > Revision: 4180 >> Author: solomax666 >> Date: Sun Sep 4 05:39:55 2011 >> Log: - too high value was set for file size (int overflow) >> http://code.google.com/p/**openmeetings/source/detail?r=**4180<http://code.google.com/p/openmeetings/source/detail?r=4180> >> >> Modified: >> /trunk/singlewebapp/src/app/**org/openmeetings/servlet/** >> outputhandler/BackupImport.**java >> /trunk/singlewebapp/src/app/**org/openmeetings/servlet/** >> outputhandler/Import.java >> >> ==============================**========= >> --- /trunk/singlewebapp/src/app/**org/openmeetings/servlet/** >> outputhandler/BackupImport.**java Sun Sep 4 05:21:47 2011 >> +++ /trunk/singlewebapp/src/app/**org/openmeetings/servlet/** >> outputhandler/BackupImport.**java Sun Sep 4 05:39:55 2011 >> @@ -175,7 +175,7 @@ >> } >> >> ServletMultipartRequest upload = >> new ServletMultipartRequest( >> - >> httpServletRequest, 1000 * 1024 * 1024 * 1024, "UTF8"); // max 1000MB >> + >> httpServletRequest, 1000 * 1024 * 1024, "UTF8"); // max 1000MB >> InputStream is = >> upload.getFileContents("**Filedata"); >> >> String fileSystemName = >> upload.getBaseFilename("**Filedata"); >> ==============================**========= >> --- >> /trunk/singlewebapp/src/app/**org/openmeetings/servlet/**outputhandler/Import.java >> Sun Sep 4 05:21:47 2011 >> +++ >> /trunk/singlewebapp/src/app/**org/openmeetings/servlet/**outputhandler/Import.java >> Sun Sep 4 05:39:55 2011 >> @@ -157,7 +157,7 @@ >> // if (user_level!=null && user_level > 0) { >> if >> (getAuthLevelManagement().**checkAdminLevel(user_level)) >> { >> ServletMultipartRequest upload = new >> ServletMultipartRequest( >> - httpServletRequest, 100 * >> 1024 * 1024 * 1024, "UTF8"); // max 100MB >> + httpServletRequest, 100 * >> 1024 * 1024, "UTF8"); // max 100MB >> InputStream is = upload.getFileContents("* >> *Filedata"); >> >> if (moduleName.equals("users")) { >> >> -- >> You received this message because you are subscribed to the Google Groups >> "OpenMeetings developers" group. >> To post to this group, send email to >> openmeetings-dev@googlegroups.**com<[email protected]> >> . >> To unsubscribe from this group, send email to >> openmeetings-dev+unsubscribe@**googlegroups.com<openmeetings-dev%[email protected]> >> . >> For more options, visit this group at http://groups.google.com/** >> group/openmeetings-dev?hl=en<http://groups.google.com/group/openmeetings-dev?hl=en> >> . >> >> > > > -- > Sebastian Wagner > http://www.webbase-design.de > http://openmeetings.googlecode.com > http://www.wagner-sebastian.com > [email protected] > -- WBR Maxim aka solomax -- You received this message because you are subscribed to the Google Groups "OpenMeetings developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/openmeetings-dev?hl=en.
