Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

FR: Add "replace" function for assets #1900

Open
lukeagsmith opened this issue Apr 25, 2018 · 4 comments
Open

FR: Add "replace" function for assets #1900

lukeagsmith opened this issue Apr 25, 2018 · 4 comments

Comments

@lukeagsmith
Copy link

A common issue we have is clients uploading new versions of existing files.

This can either break hard coded links or, if using the asset fieldtype, create a new link and leave external links pointing at old files.

At the moment if a client uploads a file with the same name a new version is automatically created. Sometimes this can prevent data loss, other times it spawns multiple versions of files.

Trying to teach a client to go into the asset browser, delete a file and then upload a new one with exactly the same name seems to be a hurdle a lot of them struggle with. Not to mention you have to re-enter any meta data for the file.

Therefore a function to replace a file would make it easier for clients who don't think about naming and external links etc. It would also be a workflow improvement for those who do.

My initial thoughts for this feature would be to add it to the file details overlay. That way it is directly available by using the edit button from the assets field type.

Uploading a replacement file would rename whatever is uploaded to exactly the same filename as the existing asset.

@lukeagsmith lukeagsmith changed the title FR: Add "replace" function for files FR: Add "replace" function for assets Apr 25, 2018
@rrelmy
Copy link

rrelmy commented Aug 21, 2019

Second that

The button is already present for a long time and sad that it has no functionality 😢

                        <!--
                        <button
                            type="button" class="btn"
                            @click.prevent="replaceFile">Replace File
                        </button>
                        -->

@anthubbard
Copy link

I really need this.

@Elwood-P
Copy link

Any news on this?

@rrelmy
Copy link

rrelmy commented Jan 25, 2022

@Elwood-P For v2 this will not happen but for v3 there are 2 different feature requests

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants