Manage file name when uploading #2

Open
opened 2025-10-27 20:54:05 +00:00 by artlef · 0 comments
artlef commented 2025-10-27 20:54:05 +00:00 (Migrated from git.artlef.fr)

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.
Sign in to join this conversation.
No labels
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
artlef/bibliomane#2
No description provided.