• Resolved jeffstu

    (@jeffstu)


    Hey,

    Is it possible to add an option to upload each submission into their own sub folder in the uploads directory

    so currently everything gets dropped in uploads/wp_dndcf7_uploads
    is it possible to give each form submission an ID and create a directory to upload the files to?

    essentially i’m wanting users to be able to upload images that we can then import into a gallery, The gallery plugin we are using can import from a directory, If we can have each submission as a separate directory it would make managing those galleries easier.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hey Jeffstu,

    I can only add an option to create custom folder for uploads not generated folder for user submission. I will try to add on my next update a hooks (apply_filter) so you can tweak the upload path depends on your requirements.

    Regards,
    Glen

    Thread Starter jeffstu

    (@jeffstu)

    Hi Glen

    Thanks for the quick response,
    No chance to create a unique folder name per submission?

    so one person fills out the contact form and it uploads the files to uploads/wp_dndcf7_uploads/sub_01

    next person submits the form it goes to uploads/wp_dndcf7_uploads/sub_02

    or any random name could be a timestamp?

    uploads/wp_dndcf7_uploads/201903291641

    Just helps separate out each submission for easy handling of the files afterwards

    Stu

    Thread Starter jeffstu

    (@jeffstu)

    I’ve had a think and have worked around the issue with a cron job, to check if any files are in the directory every 5 minutes and move them to a time stamped directory.

    should suit our needs, but if it’s possible to have the form submission trigger the directory creation we’d love to use that feature instead

    Stu

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello Jeffstu,

    Random timestamp folder name is good, I’ll try to update this plugin this week and give you an updated file once the option is added.

    Regards,
    Glen

    Hello, Glen.
    I also need this feature. Can I get please updated file?

    P.S. Sorry for my English.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    okay @xirurg2204 will give an update soon.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘upload files to sub folder’ is closed to new replies.