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.

Add file overwrite confirmation

See original GitHub issue

Whenever a file is moved to another folder, we don’t check for the existence of a file with the same name & extension. Leading to potential unintentional overwriting.

To Reproduce Steps to reproduce the behavior:

  1. Have a /dogs/oof.png and /dogs/breeds/oof.png
  2. Drag the first one into the breeds folder
  3. No confirmation modal is being used

We should ensure issues in https://github.com/ipfs/ipfs-webui/issues/1667 are addressed when we solve this

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jessicaschillingcommented, Oct 7, 2020

Proposed modal warnings to alleviate:

If only one file risks overwrite image

  • Icon is stroke_attention
  • Headline is Overwrite file?
  • Text is You already have a file named (funny-cat.gif) in this directory. Are you sure you want to overwrite it? This action is permanent and cannot be reversed.
  • Buttons are Overwrite and Cancel

If multiple files risk overwrite This one is just a first pass at conveying concepts, and would appreciate feedback from @lidel and @rafaelramalho19. Note that this approach doesn’t give an option for iterating though the n files that would be overwritten and making a decision one by one – it’s an all-or-nothing. Would prefer the option to iterate, but don’t want to block progress in order to create a more comprehensive solution. image

0reactions
SgtPookicommented, Jun 20, 2022

@lidel was this feature ever merged, and if not, do we still want to do this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overwrite Confirmation - WinSCP
Keeps the existing destination files (i.e. skip transfer of all files that already exist in the destination directory). This action is available ...
Read more >
File upload with overwrite confirmation - CodeProject
I am using fileupload() for uploading files to a folder. I want to be able to check if the file already exists in...
Read more >
how to overwrite a file after confirmation during upload in php
1 Answer 1 ... If the file already exists, what you'll have to do is move the uploaded file to a temporary location...
Read more >
Asp.net file upload with overwrite confirmation - MSDN
I am using asp:fileupload for uploading files. I want to be able to check if the file already exists in the upload folder...
Read more >
An actual warning asking for confirmation to overwrite an ...
* @TheRedWaxPolice * Yeah even if they refuse to add the dialog they could at least make it so the ONLY thing that...
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