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

Normalize uploaded filenames #1852

Merged
merged 1 commit into from Aug 27, 2018
Merged

Normalize uploaded filenames #1852

merged 1 commit into from Aug 27, 2018

Conversation

noirbizarre
Copy link
Contributor

@noirbizarre noirbizarre commented Aug 24, 2018

This PR normalizes uploaded files names to avoid:

  • encoding issues in udata (or elsewhere)
  • filesystem incompatibilities
  • ugly URLs

So an uploaded file named My Ügly Nämé.TXT will be stored and visible as my-ugly-name.txt, no encoding issue on anywhere (only ASCII), no issue with filesystem (no spaces, no special chars), same filename on filesystem and in URL.

@noirbizarre noirbizarre added this to the 1.5.3 milestone Aug 24, 2018
@noirbizarre noirbizarre requested a review from a team August 24, 2018 15:49
Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

No need to migrate existing data?

@noirbizarre
Copy link
Contributor Author

No, it will only apply to newly uploaded files

@noirbizarre noirbizarre merged commit f883dd8 into opendatateam:1.5 Aug 27, 2018
@noirbizarre noirbizarre deleted the normalize-uploaded-files branch August 27, 2018 08:44
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