prusa3d / Prusa-Link-Web

Prusa Web interface resources
GNU General Public License v3.0
114 stars 50 forks source link

Can not delete file with %20 in the filename #435

Open Jahor opened 9 months ago

Jahor commented 9 months ago

Lots of files downloaded from printables contain %20 in the downloaded filename (separate issue of printables). When loaded without renaming in to PrusaSlicer and then uploaded via PrusaLink to MK4 with default filename it results in a file on usb drive that contains %20. Print works fine.

When trying to delete such file via PrusaLink webpage it fails with 404 error. It is caused by the fact that API call is made to delete the file without url-encoding the filename first. I assume it is then url-decoded on the API side and does not find file with space in place of %20.

Jahor commented 9 months ago

Same issue with displaying previews