-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
handle whitespace for file uploads (attempt 2) #567
Conversation
Mirror behaviour noted in issue
saves a lot of encoding problems
# Conflicts: # app/assets/javascripts/file_upload.js # app/controllers/concerns/file_handling_for_datasets.rb # app/models/dataset_file.rb # spec/features/add_github_public_dataset_spec.rb
Hey @Floppy is this good to review & approve or is it still WIP? |
@@ -305,7 +305,7 @@ | |||
{ | |||
title: "New file", | |||
description: "New file description", | |||
file: "http://example.com/new-file.csv", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how come example.com is removed in this spec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the file key in the S3 uploader is no longer a URL, just the storage key. So I've removed the protocol and port which would have been added before.
Good to go. |
Sorry forgot to remove WIP tag, this is OK to merge. |
Fixes #427. We upload to s3 and then download, both using the s3 API not public URLs. But we were turning the storage keys into URLs for passing around, completely unnecessarily. This change makes the code just pass around storage keys, which don't need special encoding.