Manage file name when uploading #2

Open
opened 2025-10-27 20:54:05 +00:00 by artlef · 0 comments
Owner

https://gin-gonic.com/en/docs/examples/upload-file/single-file/

References issue #774 and detail example code.

file.Filename SHOULD NOT be trusted. See Content-Disposition on MDN and #1693

The filename is always optional and must not be used blindly by the application: path information should be stripped, and conversion to the server file system rules should be done.
https://gin-gonic.com/en/docs/examples/upload-file/single-file/ > References issue #774 and detail example code. > > file.Filename SHOULD NOT be trusted. See Content-Disposition on MDN and #1693 > > The filename is always optional and must not be used blindly by the application: path information should be stripped, and conversion to the server file system rules should be done.
artlef added this to the First version project 2025-10-27 20:54:05 +00:00
artlef moved this to New in First version on 2025-10-27 20:54:06 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: artlef/bibliomane#2
No description provided.