file names saved in File records are the original file name not the stored file name #512

Open
opened 2018-07-07 01:51:46 +02:00 by bones7242 · 0 comments
bones7242 commented 2018-07-07 01:51:46 +02:00 (Migrated from github.com)

When files are uploaded, they are stored with a random hash for the name, which is generated by the multipart middleware. A record is then created in the File table for each file. Currently, the file path being stored for each File record. is correct, but it is listing the file name as the original file name, not the middleware-generated name. This does not affect spee.ch's function at the moment, because spee.ch uses the file path to access the file, but it is incorrect and should be fixed.

When files are uploaded, they are stored with a random hash for the name, which is generated by the multipart middleware. A record is then created in the File table for each file. Currently, the file path being stored for each File record. is correct, but it is listing the file name as the original file name, not the middleware-generated name. This does not affect spee.ch's function at the moment, because spee.ch uses the file path to access the file, but it is incorrect and should be fixed.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/spee.ch#512
No description provided.