Modify the file upload path

Home Forums Quform WordPress Modify the file upload path

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8321
    tampalab
    Participant

    Hi Ally,

    As you explained in customization guide, I modified upload path but I was wondering if I can add month and day variables. I am trying to create path like “artists/{month}/{day}/user-email”

    Thank you

    function mytheme_override_upload_path($path, $element)
    {
    $submittedEmailAddress = $element->getForm()->getValue('iphorm_1_1');

    return "artists/$submittedEmailAddress/";
    }
    add_filter('iphorm_upload_path_1', 'mytheme_override_upload_path', 10, 2);

    #8337
    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 2 posts - 1 through 2 (of 2 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