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
What is the proper way to upload a file? #70
Comments
Hello I have a PR open #71 but It seems that there are a lot of incompatibilities between this library and the required Requests.jl. Is this the correct approach? |
The upload is not working for me due to this issue.
|
@ jingpengwu, you are passing file stream instead of the contents of the file to this API. |
thanks for the response. but isn't the
The problem seems to be in md5: For download, I can use file pointer, but not upload! could you show what is the proper way to upload a file or an array in memory? |
Closing this as it is no longer relevant with the newest major release. |
Thank you for this library!
What is the proper way to upload a file?
It looks like https://github.com/JuliaParallel/AWS.jl/blob/master/src/S3.jl#L518
should allow specification of
data
to be ofIO
.However it looks like when
do_http
is called, it passes the IO directly toRequests.put
https://github.com/JuliaParallel/AWS.jl/blob/master/src/S3.jl#L730
The requests library doesn't seem to support uploading files using PUT, only POST with parameter type
FileParam
https://github.com/JuliaWeb/Requests.jl#file-uploadIs there an easy way to upload files?
The text was updated successfully, but these errors were encountered: