We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the uploaded file is all in Chinese, such as "图片.png", the extension function in this file flask_uploads\extensions.py. will return empty.
flask_uploads\extensions.py.
Maybe you should modify like this:
def extension(filename: str) -> str: ext = os.path.splitext(filename)[1] if len(os.path.splitext(filename)[1]) >0 else os.path.splitext(filename)[0] if ext.startswith('.'): # os.path.splitext retains . separator ext = ext[1:] return ext
The text was updated successfully, but these errors were encountered:
Thank you for the report. Would you be able to create a pull request with the fix? And ideally a test case which shows the bug.
Sorry, something went wrong.
No branches or pull requests
When the uploaded file is all in Chinese, such as "图片.png", the extension function in this file
flask_uploads\extensions.py.
will return empty.Maybe you should modify like this:
The text was updated successfully, but these errors were encountered: