• Resolved aquaphase

    (@aquaphase)


    Is there an option available to overwrite an existing file in the bucket? I have a file that gets uploaded several times a day, but needs to overwrite the previous version rather than appending the name and creating a new file. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author profaceoff

    (@profaceoff)

    Hi @aquaphase,

    Thanks for reaching out to us this Sunday night.

    By default, when you upload files with the same name to Amazon S3, it’ll overwrite the existing ones. This behavior might cause data loss, especially when you allow file uploads by multiple users.

    That’s why our SSU plugin adds suffixes to duplicate files.

    In case you want to overwrite duplicate files, simply add the following custom code to your (child) theme functions.php file:

    add_filter( 'ssu_enable_unique_file_name', '__return_false' );

    Let us know if it works for you.

    Thread Starter aquaphase

    (@aquaphase)

    Worked like a charm. Thank you so much!

    Plugin Author profaceoff

    (@profaceoff)

    Glad to hear that, @aquaphase.

    Should you need any further assistance, feel free to let us know. We’re always more than happy to help.

    By the way, if you’re happy with our plugin features and support so far, do you mind leaving us a kind review on WordPress, please?
    https://www.ads-software.com/support/plugin/wp-s3-smart-upload/reviews/

    It takes only 1 minute but means a lot lot to us and will encourage us to work harder & support you even better in the future.

    Many thanks in advance for your kind words. ??

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