Skip to content
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

Port Django get_valid_filename utility to front-end code to open files with unicode characters and space #3659

Merged
merged 7 commits into from Feb 16, 2022

Conversation

noliveleger
Copy link
Contributor

Description

When a submission with an attachment comes in. Django renames the attachement file before saving the file in the storage.

  • It removes letters with accent (and replaces then with their counterpart without accent)
  • It replaces spaces with underscore
  • It removes any others characters

@noliveleger noliveleger marked this pull request as ready for review February 3, 2022 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants