File Upload Element > Array > Timestamp

Home Forums Quform WordPress File Upload Element > Array > Timestamp

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  katw 3 days, 6 hours ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #26612


    Would you consider adding a Timestamp attribute for File Upload Elements?

        0 => array(
            'name' => 'file.png',
            'size' => 6464,
            'type' => 'image/png',
            'path' => '/home/',
            'url' => '',
            '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 😉


    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.



    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 😉

    You must be logged in to view attached files.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.