Param

Method

Event

 

 

UploadFileSizeLimit v1.1 or higher

Limits the size of uploaded files.

 

Syntax

    [get] HRESULT UploadFileSizeLimit(
    BSTR* SizeLimit
    );
    [put] HRESULT UploadFileSizeLimit(
    BSTR SizeLimit
    );

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.

image

Image files

flash

Flash files

The format is "file type:size" with the size being in bytes.

If you create multiple size limits, separate them with a comma.

 

Return Values

Returns the currently set value.

 

Remarks

The 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 Code

JavaScript [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();