• Resolved F?ldesi, Mihály

    (@foldesistudio)


    Hi there,

    Now these are the uploaded file names:

    1. ff-2ee396c17f04a18a693e41b2eb23ef55-ff-004egyetemes-filmtortenet.docx
    2. ff-be6a95880eaf1f97bb86aec2882d7801-ff-004tetelek.pdf

    Next time, I would like to rename them as follows:

    1. {inputs.names}-ff-2ee396c17f04a18a693e41b2eb23ef55-ff-004egyetemes-filmtortenet.docx
    2. {inputs.names}-ff-be6a95880eaf1f97bb86aec2882d7801-ff-004tetelek.pdf

    Could you please guide me on how to do this? What should I do?

    Thank you for your support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Abul Khoyer

    (@hellokhoyer)

    Hello @foldesistudio,

    You can change file name using a hook. Please check out the hook below,

    add_filter('fluentform/uploaded_file_name', function($file, $originalFileArray, $formData, $form){
    $file = 'custom_name';
    return $file;
    }, 10, 4);

    Hope this helps.

    Thank you.

    Thread Starter F?ldesi, Mihály

    (@foldesistudio)

    Thank you very much. That was the right way to go!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rename the attached files of forms’ is closed to new replies.