rejetto / hfs

HFS is a web file server to run on your computer. Share folders or even a single file thanks to the virtual file system.
GNU General Public License v3.0
2.29k stars 227 forks source link

Uploaded files get prefix #382

Closed made1990 closed 1 year ago

made1990 commented 1 year ago

Hi folks,

using hfs 0.48.2 when i upload a file using the webbrowser, the file gets uploaded successfully, but gets a prefix in the file name hfs$upload

So a file called text.txt now has the name: hfs$upload-test.txt

How can I prevent that?

Marcus

rejetto commented 1 year ago

that's because your upload is not completed yet. When it is completed, the name becomes the original one.

made1990 commented 1 year ago

Got it. My underlying filesystem marks every new file read-only. So i guess the file was set to read-only before hfs could rename the file. I now changed the behaviour of my filesystem and now the files are uploaded with the correct filename. Thx

rejetto commented 1 year ago

ok, so i consider it closed.

hfs renames the files because that's how it knows that it is incomplete, and can suggest upload resume. also, it's good for the user to know that the file is incomplete.