• Resolved michael1408

    (@michael1408)


    I have a form that is being submitted to its own database table using MySQL mapping
    The form has a multiple file upload field
    Right now I created a hidden field, grabbed the file names and using jQuery saved it to the hidden field that was submitted to the database. However, I just realized that the different users could submit a file with the same name. Is there a way to change the name of the file being uploaded and capture the new name before it is uploaded?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Form Maker Support

    (@formmakersupport)

    Hello, @michael1408!

    Thanks for posting your request!

    Unfortunately, Form Maker does not have the functionality to rename files upon upload. However, this would be a great addition to the product. So could you please add your suggestion to our Submit Your Idea page?

    Our development team will consider working on this for further updates.
    Thanks in advance! Have a wonderful day!

    Thread Starter michael1408

    (@michael1408)

    I did, but if you could advise me on how I can implement this myself right now, that would be greatly appreciated

    Plugin Contributor Form Maker Support

    (@formmakersupport)

    Hi, @michael1408!

    Please note, that File upload field can be used in MySQL Mapping with its final title. You did not need to use a hidden field to capture filenames.

    This way, if two users submit a file with filename.txt title, the first one will be saved as filename.txt and the second – filename (1).txt.

    Could you please give this a try? Hopefully, this will help you with detecting unique filenames.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upload file names’ is closed to new replies.