We're updating the issue view to help you get more done.Learn more

admin/assetmanager/uploadAssets doesnt pickup the settings set in folder option

In admin AssetManager handler, the part uploadAssets doesn't pickup the settings set in folder options such as the max file size, and type of files.

Case example: User set the max file size and file type for a specific folder, however, upon uploading to the folder, the settings doesn’t apply.

This can be solved by adding the code into the function uploadAssets:

1 2 3 4 5 6 var folder = prc.folder ?: queryNew(""); if( folder.recordCount ){ var allowedTypes = folder.allowed_filetypes ?: ""; var maxFileSize = folder.max_filesize_in_mb ?: 100; event.includeData( { allowedExtensions : allowedTypes, maxFileSize = maxFileSize } ); }

Status

Assignee

Unassigned

Reporter

Kok Ann Ng

Accepted

Yes

Fix versions

Priority

Medium