open.posting.meta.keywords=Freie Medien, Gegenöffentlichkeit
open.posting.jump_to_form=Direkt zum Eingabeformular springen
open.posting.title=Veröffentliche Deinen Beitrag
-open.posting.nr_of_media=Anzahl der Medien
+open.posting.nr_of_media=Anzahl der Medien (max 20)
open.posting.nr_of_media.info=(wenn Du mehr als eine Datei hochladen willst, bitte hier die Anzahl eintragen und den Knopf drücken, <b>bevor</b> Du weitere Felder ausfüllst.)
open.posting.nr_of_media.submit=Anzahl festlegen
open.posting.form.title=Veröffentlichungsformular
open.posting.meta.keywords=Freie Medien, Gegenöffentlichkeit
open.posting.jump_to_form=Jump dirctly to the form.
open.posting.title=Publish your article!
-open.posting.nr_of_media=Number of Media Items
+open.posting.nr_of_media=Number of Media Items (max 20)
open.posting.nr_of_media.info=(wenn Du mehr als eine Datei hochladen willst, bitte hier die Anzahl eintragen und den Knopf drücken, <b>bevor</b> Du weitere Felder ausfüllst.)
open.posting.nr_of_media.submit=Anzahl festlegen
open.posting.form.title=Publishing Form
Rsync=no
Rsync.Script.Path=/var/www/bin/rsync-copy
+# the maximum allowed size of an uploaded media file in KB.
+MaxMediaUploadSize=20000
+# the maximum number of allowed media items to upload at once.
+ServletModule.OpenIndy.MaxMediaUploadItems=20
#
#
public WebdbMultipartRequest(HttpServletRequest theReq) throws IOException
{
req=theReq;
- mp = new MultipartParser(req, 1024*20480); // maximum eight megabyte
+ int maxSize = Integer.parseInt(MirConfig.getProp("MaxMediaUploadSize"));
+ mp = new MultipartParser(req, 1024*maxSize);
requestList = new ArrayList();
_evaluateRequest();
}
}
} // while */
}
-
+
}
public void addposting(HttpServletRequest req, HttpServletResponse res)
throws ServletModuleException {
SimpleHash mergeData = new SimpleHash();
+ String maxMedia = MirConfig.getProp("ServletModule.OpenIndy.MaxMediaUploadItems");
String numOfMedia = req.getParameter("medianum");
if(numOfMedia==null||numOfMedia.equals("")){
numOfMedia="1";
+ } else if(Integer.parseInt(numOfMedia) > Integer.parseInt(maxMedia)) {
+ numOfMedia = maxMedia;
}
int mediaNum = Integer.parseInt(numOfMedia);