Binner icon indicating copy to clipboard operation
Binner copied to clipboard

[Bug]: Problems deleting/replacing user files

Open parzival opened this issue 11 months ago • 1 comments

Binner version

2.6.0

Operating System

Ubuntu 20.04

Describe the bug and the steps to reproduce it

It appears that the 'delete file' button is not functional, at least for datasheets. Creating a part and uploading a datasheet works okay, and the file is correctly placed in the [User Files]/Datasheets directory. However, the red x 'delete' button does not appear to work in Firefox 113 for MacOS, nor in Safari 16.3.

Potentially more of an issue is that replacing the file (by dragging a new file) does bring up the dialog box to delete the existing file. If the deletion is confirmed, the new file apparently updates, although the filename listed was incorrect until I leave the page and come back. However, the new file does not load (giving the 404 JSON data instead when clicking on the datasheet preview). It seems to be uploading the new file before deleting the old one, as when I do this, the [User Files] directory has a file with the name PN-Datasheet-1.pdf, which is likely why it cannot load it. Replacing the file a second time works (this is likely because it uploaded it to PN-Datasheet.pdf, as that file was not currently in the directory).

Also, a feature request would be to show a dialog or better error message if the file cannot be found, instead of the JSON error data.

(I placed brackets around [User Files] as my settings have changed this from the default. I would hope that does not cause this problem, but it could be a reason.)

Would you like to attach your appsetings.json configuration?

No response

Screenshots or Videos (Optional, but they help!)

No response

Are you able to contribute a PR? (No is ok!)

None

parzival avatar Jul 20 '23 16:07 parzival

I was able to delete an attached datasheet by doing the following two steps:

  • Clicking on the delete button (red X). (Nothing happens since the button is somewhat broken)
  • Clicking in the Part-field and writing something.

Then the delete-dialog appears and i can click "OK", the datasheet is deleted. Also the "cancel"-button on tis dialog is not working

Tested on Win10, Binner v2.6.0

Lucard-AUT avatar Oct 11 '23 14:10 Lucard-AUT

Issue is fixed, will appear in v2.6.3

replaysMike avatar Apr 22 '24 02:04 replaysMike