Skip to content

Chinese filename use form-data upload, flask request.files.filename have wrong value #9088

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

Closed
UranusLin opened this issue Sep 24, 2020 · 1 comment

Comments

@UranusLin
Copy link

Describe the bug
use form-data upload Chinese filename file and flask use request.files to get file and files.filename to get the filename, the filename will append " in the string.

To Reproduce
Steps to reproduce the behavior:

  1. POST API, Body use form-data and select Chinese filename file
  2. flask use request.files get file and files.filename to get the filename
  3. filename have "

截圖 2020-09-24 下午11 07 57

截圖 2020-09-24 下午11 11 29

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem. Please make sure the screenshot does not contain any sensitive information such as API keys or access tokens.

App information (please complete the following information):

  • App Type : Postman for Mac
  • Postman Version: 7.33.1
  • OS: macOS Catalina 10.15.4(19E287

Additional context
Add any other context about the problem here.

@DannyDainton
Copy link
Contributor

Closing this issue as it's a duplicate of #8537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants