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

Files with a # symbol, characters removed after the #. #722

Closed NSBSD-InfoTech closed 1 month ago

NSBSD-InfoTech commented 2 months ago

BEFORE

To Reproduce Steps to reproduce the behavior:

  1. Uploaded a pdf file with file name PO#12345.pdf

Describe the bug The file will upload successfully, but the characters after the # will be removed. ex. PO#

Expected behavior Because of this bug, anything after # symbol will get cut, even the file extension, the file gets corrupted. You can rename the file after downloading and include the file extension like .pdf and it will open properly.

The filename should be unchanged after uploading even with # symbol.

Screenshots Try to provide videos or else screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

rejetto commented 2 months ago

thanks for reporting! fixed in next release

rejetto commented 1 month ago

this is fixed in current 0.54.0-alpha