question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update a file with the same name

See original GitHub issue

Issue 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

  1. Upload a document
  2. Enter to its edit view /documents/edit/pk
  3. Update the document with a new version of the previous one, with the same name.
  4. 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:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
gasmancommented, Aug 6, 2018

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.

0reactions
richaagarwalcommented, Aug 6, 2018

Does it make sense to close this issue if the PRs in question have not been approved or merged?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found