Param |
Method |
Event |
|
|
UploadFileSizeLimit v1.1 or higherLimits the size of uploaded files.
Syntax[get] HRESULT UploadFileSizeLimit( [put] HRESULT UploadFileSizeLimit( Parameters[get]SizeLimit [out, retval] Returns the upload file size limit value. [put]SizeLimit [in] Sets the upload file size limit. You can set different file size limits for different file types. The supported file types are as follows.
The format is "file type:size" with the size being in bytes. If you create multiple size limits, separate them with a comma.
Return ValuesReturns the currently set value.
RemarksThe property must be set after MainClass is called and before the editor loads. The call can be performed via the created MainClass object's "params". If the size limit is not set, the default of 5MB is used. If size limits are not set for all types, the types without a set limit will use the default of 5MB.
Sample CodeJavaScript [get] var object = new NamoSE("test"); var edit = object.params.UploadFileSizeLimit;
JavaScript [put] var object = new NamoSE("test"); object.params.UploadFileSizeLimit="image: 1048576,flash: 2097152"; object.editorStart(); |