arozos icon indicating copy to clipboard operation
arozos copied to clipboard

[BUG] File got overwritten without notification when uploading another file with same filename

Open ghost opened this issue 3 years ago • 1 comments

Describe the bug When uploading files via browser, it does not ask for anything before overwriting files with existing file with same filename. Usually file managers will ask for conformation first or auto renaming but is currently missing.

To Reproduce Steps to reproduce the behavior:

  1. Drag a file to the desktop for uploading
  2. Drag another file with the same filename to upload
  3. There will be two files with the same name on the desktop
  4. Open both the files, they will both point to the same file uploaded in step 2

Expected behavior Either (a) Renaming second file to screenshot-2.png automatically or (b) Prompt to choose file overwrite confirmation

Screen Recording https://user-images.githubusercontent.com/68219227/123539605-29586c80-d76d-11eb-91db-f8c5f2053870.mp4

Host Information(please complete the following information):

  • OS: Debian
  • ArozOS version: v1.113
  • Hardware: Raspberry Pi 3B+

Client Information(please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Version: 89.0.2

ghost avatar Jun 27 '21 09:06 ghost

Hi @cakkomilk, I have checked and been able to reproduce your issue.

For duplicated desktop icon, it is a bug of the desktop rendering pipeline and we have scheduled a big update for the desktop upload mechanism in v1.115. I guess I will include the patch in that release instead of the next one (v1.114).

For the parts about overwriting confirmation or file automatically renaming, this should belongs to another issue (enhancement). I will start a discussion in our Telegram groups after v1.114 release and see which is a better way to implement this feature without breaking many things.

Thanks for the issue report :)

tobychui avatar Jun 27 '21 14:06 tobychui

This is quite helpful when you are trying to constantly update and overwrite old files on the system. Devs have already get used to the default overwrite logic of the system and prefer not to fix this.

If you need to keep a old version of a file from accidentally overwriting, use the file version history features where you can find inside File Properties > View Version History. 圖片

tobychui avatar May 10 '23 10:05 tobychui