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

api: stream file uploads using request.stream #257

Merged

Conversation

diegodelemos
Copy link
Member

@diegodelemos diegodelemos commented Oct 11, 2019

@diegodelemos diegodelemos force-pushed the reana-client-302-big-file-upload-bug branch from 7123fa4 to 40ec209 Compare October 15, 2019 08:15
@diegodelemos diegodelemos changed the title api: file uploads in request body api: stream file uploads using request.stream Oct 15, 2019
* After the findings in
  https://github.com/diegodelemos/client-server-flask-big-file-uploads
  it is clear we have to move from multipart uploads to stream uploads
  using `request.stream` directly (closes reanahub/reana-client#302).
@diegodelemos diegodelemos force-pushed the reana-client-302-big-file-upload-bug branch from 40ec209 to f1fc530 Compare October 15, 2019 13:45
@diegodelemos diegodelemos marked this pull request as ready for review October 15, 2019 13:53
@@ -456,7 +466,7 @@ def upload_file(workflow_id_or_name):
'Please set your REANA_WORKON environment'
'variable appropriately.'.
format(workflow_id_or_name)}), 404
except (KeyError, ValueError) as e:
except (KeyError, ) as e:
Copy link
Member

Choose a reason for hiding this comment

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

can also remove tuple if we keep one exception only

@diegodelemos
Copy link
Member Author

Updated.

@tiborsimko tiborsimko merged commit da1442b into reanahub:master Oct 16, 2019
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.

cli: error uploading a large file
2 participants