allow forcing file uploads to always use a randomised guid based file name

Description

when uploading a file, ideally the user should have no control over the generated filename and it shouldn't be predictable

https://docs.lucee.org/reference/tags/file.html#attribute-nameconflict

there is nameconflict=makeunique

I propose adding something like nameconflict=forceunique which appends not a counter, but a guid

Activity

Show:
Pothys - MitrahSoft
November 4, 2020, 1:02 PM

,
I've analyzed and added a nameconflict - forceunique. So, if we upload a file with the same name as more than time and using nameconflict = "forceunique", it'll upload a file with guid as per reporter said.

Pull request: https://github.com/lucee/Lucee/pull/1097

Assignee

Michael Offner

Reporter

Zac Spitzer

Labels

Affects versions

Priority

New
Configure