File Upload Element > Array > Timestamp

Home Forums Quform WordPress File Upload Element > Array > Timestamp

This topic is: resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26612
    katw
    Participant

    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 😉

    #26691
    Ally
    Support Staff

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

    #26712
    katw
    Participant

    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.
    #26769
    Ally
    Support Staff

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy