-
Notifications
You must be signed in to change notification settings - Fork 17.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
affected/package: http #51656
Comments
please show code and steps to reproduce the issue |
After running below code, select directory to upload, in version 1.16 you will send directory name with files, but in 1.17 only file names will be get: |
This is an intentional security fix #45789 Closing as working as intended |
I was relying on this feature to upload templates, and static folders for Go Web applications in my GoCat project |
as mentioned in the linked issue, the full path is still available via the file headers |
Yes I found it in Content-Disposition header, thanks |
What is the URL of the page with the issue?
What is your user agent?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0
Screenshot
What did you do?
Uploading multi-part form: when uploading directory, directory name does not appear in uploaded file name, for example: templates/index.html will receive uploaded file as index.html
What did you expect to see?
Receiving directory name with file name: templates/index.html
What did you see instead?
index.html
this issue has started on version 1.17, Go version 1.16.5 were working fine
The text was updated successfully, but these errors were encountered: