Uploaded image for project: 'PresideCMS'
  1. PRESIDECMS-1335

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

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 10.9.9
    • Labels:
      None
    • Sprint:
    • Accepted:
      Yes

      Description

      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:

      		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 } );
      		}
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kokann.ng Kok Ann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: