Possible Asset Factory Plugin Bug

Kris's Avatar

Kris

25 Feb, 2011 10:22 PM

I have a couple of different cases where I need to use the File Limit Asset Factory plugin. The size limit works fine but the file name regular expression parameter is easily bypassed. If I use this regex ^((?!.gif).)*$ to not allow the upload of gif files, it works unless during the upload process I specify a new system name. If I give it a system name of filename.txt, the upload is allowed, then I just have to rename the file to filename.gif and everything works fine.

I will continue to use the plugin and hope people don't figure out this workaround but would appreciate a fix in a future release ... I guess I could write my own plugin too. ;-)

Thanks,
Kris

  1. 1 Posted by Charlie Holder on 01 Apr, 2012 07:57 PM

    Charlie Holder's Avatar

    Hi Kris,

    I just noticed that this discussion was unanswered. You may already have your answer, but in case you don't, the Asset Factory Plugins only run during the Asset Factory process. The Asset Factory is only used as a base asset to blueprint/template the new asset. Once the asset is in system, changes to assets later are not done through the Asset Factory process. I would recommend using a Workflow to capture name changes to assets or not granting that ability to users that don't understand the implications of changing the file extensions.

    I hope this information helps. Let me know if you have any additional questions.
    Thanks.

  2. Tim closed this discussion on 02 Oct, 2012 03:45 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac