This repository has been archived by the owner on May 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
FR: Add "replace" function for assets #1900
Labels
Comments
lukeagsmith
changed the title
FR: Add "replace" function for files
FR: Add "replace" function for assets
Apr 25, 2018
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>
--> |
I really need this. |
Any news on this? |
@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.
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.
The text was updated successfully, but these errors were encountered: