thrownewTAPException("The default upload limit (in "+uploadLimitTypes[0]+") and the maximum upload limit (in "+limit[1]+") MUST be expressed in the same unit!");
else
uploadLimitTypes[1]=(LimitUnit)limit[1];
if(!setMaxUploadLimit((int)limit[0]))
thrownewTAPException("The default upload limit (here: "+getProperty(tapConfig,KEY_DEFAULT_UPLOAD_LIMIT)+") MUST be less or equal to the maximum upload limit (here: "+getProperty(tapConfig,KEY_MAX_UPLOAD_LIMIT)+")!");
thrownewTAPException("The maximum upload file size "+KEY_UPLOAD_MAX_FILE_SIZE+" (here: "+propValue+") can not be expressed in a unit different from bytes (B, kB, MB, GB)!");
<p>Here is an empty minimum TAP configuration file: <ahref="tap_min.properties">tap_min.properties</a> and a complete one: <ahref="tap_full.properties">tap_full.properties</a>.</p>
<p><b>Important note:</b> Any limit value is an integer and so can be at most: 2<sup>31</sup>-1 bytes/rows = 2147483647B/R (or also for the byte unit: = 2147483kB = 2147MB = 2GB).
Otherwise, you should use the null value 0 to raise the limit constraint.</p>
<p><i><u>Legend:</u><b>M</b> means that the property is mandatory. If nothing is written for the second column, the property is optional.</i>
<table>
@@ -413,33 +417,34 @@
<tr><tdcolspan="5">Upload</td></tr>
<tr>
<tdclass="todo">upload_enabled</td>
<tdclass="done">upload_enabled</td>
<td></td>
<td>boolean</td>
<td>
<p>Tells whether the Upload must be enabled. If enabled, files can be uploaded in the file_root_path,
the corresponding tables can be added inside the UPLOAD_SCHEMA of the database, queried and then deleted.</p>
<p>By default, the Upload is disabled: upload_enabled=false.</p>
<p><i>By default, the Upload is disabled: upload_enabled=false.</i></p>
<p>Default limit for the number of uploaded records that can be inserted inside the database. The prefix "default" means here that this value will be set if the client does not provide one.</p>
<p>This limit can be expressed with 2 types: rows or bytes. For rows, you just have to suffix the value by a "r" (upper- or lower-case),
with nothing (by default, nothing will mean "rows"). For bytes, you have to suffix the numeric value by "B", "kB", "MB" or "GB".
<p>This limit can be expressed with 2 types: rows or bytes. For rows, you just have to suffix the value by a "r" (upper- or lower-case)
or by nothing (by default, nothing will mean "rows"). For bytes, you have to suffix the numeric value by "B", "kB", "MB" or "GB".
Here, unit is case sensitive. No other storage unit is allowed.</p>
<p>A negative or null value means there is no restriction over this limit. Float values are not allowed.</p>
<p>Obviously this limit MUST be less or equal than upload_max_db_limit.</p>
<p><em>By default, there is no restriction: upload_default_db_limit=0</em></p>
<p><b>Warning!</b> Obviously this limit MUST be less or equal than upload_max_db_limit, and MUST be of the same type as it.
If the chosen type is rows, this limit MUST also be strictly less than upload_max_file_size.</p>
<p><i>By default, there is no restriction: upload_default_db_limit=0</i></p>
<p>Maximum allowed size for the uploaded file.</p>
<p>This limit MUST be expressed in bytes. Thus, you have to suffix the numeric value by "B", "kB", "MB" or "GB".
Here, unit is case sensitive. No other storage unit is allowed.</p>
<p>A negative or null value means there is no restriction over this limit. Float values are not allowed.</p>
<p>In function of the chosen upload_max_db_limit type, upload_max_file_size should be greater in order to figure out the metadata part.</p>
<p><em>By default, there is no restriction: upload_max_file_size=0</em></p>
<p><b>Warning!</b> When the upload is enabled, there must be a maximum file size. Here, no "unlimited" value is possible ; 0 and any negative value are not allowed.</p>
<p><b>Warning!</b>In function of the chosen upload_max_db_limit type, upload_max_file_size MUST be greater in order to figure out the file metadata part.</p>
<p><i>By default, the maximum size is set to its maximum possible value: upload_max_file_size=2147483647B (~2GB)</i></p>