Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

I have a site that uses several PDF forms that update from time to time. Instead of adding a new asset, I would rather replace the existing one.

I couldn't see how to do that from within the Craft admin. I suppose it's possible to do via FTP, but I'd really like it to be able to be done by the client.

Am I missing something, or is this not possible at this time?

Thanks

share|improve this question

2 Answers 2

up vote 10 down vote accepted

This actually is possible if you navigate to the folder or sub folder where you are trying to add the asset and then upload a file with the exact same file name.

Craft will ask you if you want to replace the existing file or upload another version with an appended name (for example "my-file-1.txt")

share|improve this answer
    
Right, totally forgot about it. Since it is possible to upload from the entry form, I almost never visit the assets section in the CP. But yeah, that's currently the best way to handle updating/replacing! Thanks for your answer, Peter! –  carlcs Jul 31 at 17:55
    
Absolutely! It's one of those "hidden" features I discovered awhile ago by the same method (ie, asking the question). I believe it was a feature request somewhere to make this more explicit for the end user. –  Peter Tell Jul 31 at 17:58
    
Thanks! Ya I'd love this to be more visible in the future. Maybe in the context menu when right clicking on an asset. –  mjr Jul 31 at 19:05
2  
There's a rumor this might be addressed in the 2.2 release. –  Brad Bell Jul 31 at 20:47
    
That's great news, thanks Brad! I –  Peter Tell Aug 1 at 1:03

No, I don't think it's currently possibly [from the entry section]. You'll always end up with a new file, filename and URL, if an asset already exists with the same file name. To be able to upload an updated version of that asset, you'd need to properly delete the old file first.

There was a related feature request on +g not long ago. Jamie Wade asked to make it possible to delete (and rename) assets through the asset field while editing an entry. If this get's implemented, your client should be able to update the assets with ease. You should just tell him the difference between the minus sign (to just remove the relation), and the UI for proper deletion.

.

Edit:

This is only true, if you're dealing with assets from the entry section the the Control Panel. Currently the best way to replace / update assets is through the assets section in the CP (see Peter's answer), some things probably change with Craft 2.2 though.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.