- August 10, 2018 at 9:27 am #26612
Would you consider adding a Timestamp attribute for
File Upload Elements?
array( 0 => array( 'name' => 'file.png', 'size' => 6464, 'type' => 'image/png', 'path' => '/home/example.com/public_html/path/to/the/file.png', 'url' => 'http://www.example.com/path/to/the/file.png', 'quform_upload_uid' => '(random string)', 'timestamp' => Datetime UTC format <--- Upload Timestamp UTC ), ..... etc )
This would help with audit trails and distinguishing files that may have same original name/type.
Format would be UTC so it can be filtered for different locales etc through hooks.
The date/time is upload date/time NOT the file date/time.
Thanks for considering.
P.S If you have ideas on how I can do now I would be appreciative 😉August 16, 2018 at 9:29 am #26691
AllySupport StaffAugust 17, 2018 at 10:58 am #26712
Thanks for considering the request.
I know I could change the file name to insert a date now but not best practice. It is better to have an attribute.
Look forward to seeing it on a future release.
BTW I have used the hooks to build much nicer file-lists which tap into the attributes you have exposed.
See use case attached. Image it with a timestamp 😉
Attachments:You must be logged in to view attached files.August 21, 2018 at 11:22 am #26769
You must be logged in to reply to this topic.