Comment to 'Replace a file in s3 storage'
  • @Alex T⚜️ I have looked through BxDolStorage and it looks like there is no function to overwrite/replace a file already in storage. So I guess I need to extend BxDolStorage.

    I don't want to break storage routines, and I want to be sure this works properly.

    Essentially I call the storage class with my module name. I have a file on my server (tmp file) that was created by editing a file in storage already. I do not want to update all the databases for this file, I just want to send it back to the place / folder it came from.

    What is easiest solution?

    Thank you.

    • You are right, UNA always upload new one and deletes old one, if you want to just replace one file it's better to do it manually using some S3 browser, usually some S3 browser is provided by S3 provider.