Update a file with the same name
See original GitHub issueIssue Summary
At the documents edit view, if the file has changed the original file is deleted. If you edit a document uploading a new version of the file with the same name, the new document will be upload to the file system and the name of the document object will not be changed. Then, the file is deleted which the reference of the new file.
Steps to Reproduce
- Upload a document
- Enter to its edit view /documents/edit/pk
- Update the document with a new version of the previous one, with the same name.
- Enter to the edit view of the document again /documents/edit/pk -> A 404 Error was raised when accessing to the file because of its deletion.
Technical details
- Python version: Run
3.6
. - Django version:
2.0 and previous
. - Wagtail version:
2.1 and previous
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
Check and replace file same name only - Super User
I want to move then replace file in Folder 2 only with same name from file in Folder 1. is there a cmd/script...etc...
Read more >Replace a file with the same name - WordPress.org
Is there a way to update a file (pdf, jpg, etc.) with the same name but which allows you to download the latest...
Read more >What happens when I overwrite an existing file with the same ...
As others have said, in most cases if a program writes two files with the exact same name, the first will be lost...
Read more >Replacing Files with same Name-overwrite
I push the no button and i choose a different name for the file. What i want is the following: If the file...
Read more >How to batch rename multiple files on Windows 10
To rename multiple files in bulk with the same name structure on Windows 10, use these steps: Open File Explorer.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @richaagarwal, Unlike some other projects, we don’t require PRs to have a corresponding issue open - the PR itself can serve as a problem report, that just happens to have a proposed solution attached. In this case, the existing PR #4567 had a more complete description of the problem and some further discussion, so it would be counter-productive to have another issue open covering the same ground.
Does it make sense to close this issue if the PRs in question have not been approved or merged?