• Resolved agusgonzalezs

    (@agusgonzalezs)


    I have several forms that give the option to upload a file. But when they arrive in the mail, they do not respect the original name, but add a series of numbers and letters ahead. I would like the original file name to be kept. Will it be possible?
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @agusgonzalezs

    I hope you are doing well today.

    This is for protection as we use a custom folder for that and in the end, there is a possibility that 100 end users could send the same file name called cv.pdf on the same day. On another day there will be a new folder created and new files will be stored there.

    I asked our SLS Team if there is any solution that we can provide to skip those series of numbers and letters ahead. Please note that it could cause issues as I mentioned in the above example and we are not sure what will happen, for example, 99 users will be not able to send a file called cv.pdf on the same day.

    Kind Regards,
    Kris

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @agusgonzalezs

    I have and update from SLS Team and this is happening due to the usage of the wp_generate_password() function in the $file_name variable during the file upload process at library/fields/upload.php:371

    Unfortunately, there is no filter available to rename the file (and no trivial way to achieve it). By looking at our code, it seems to be designed in that way due to security reasons and such task it out of scope.

    Kind Regards,
    Kris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pdf name’ is closed to new replies.