Home › Forums › Quform WordPress › File Upload Element > Array > Timestamp
- This topic has 3 replies, 2 voices, and was last updated 6 years, 8 months ago by
Ally.
- AuthorPosts
- August 10, 2018 at 9:27 am #26612
katw
ParticipantWould 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 #26691Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
August 17, 2018 at 10:58 am #26712katw
ParticipantThanks 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 #26769Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.