Closed tyler-boyd closed 7 years ago
Specs are failing since content
is nil
in there.
Also if I understand well, old ruby dropbox sdk was using Content-Length also (and provided special ChunkedUploader for chunked upload). So this is the way to go.
Updated, bump for 👀 @simi and @Jesus
Thank you both for this patch. I think I would never have been able to reproduce this without your help.
I just pointed out a minor issue on the new code, but I think this is ready for merge.
Is there any chance to add specs @Mavvie? I can handle that if you want.
Hey @simi, I'd appreciate that! I tried adding a test but I don't really have time right now to make a test account to get VCR working.
Probably can be a pretty simple test, just try uploading a Tempfile
Hi @simi, if you're planning to write a test I'll wait for it to merge this. Just let me know so we can move forward, thanks!
Hello. Give me day or two please to prepare patch.
No rush, I'll wait.
specs are ready in https://github.com/Mavvie/dropbox_api/pull/1, @Mavvie Can you review and merge?
Closing in favor of #31
I ran into #26 as well, and this seems like a simple fix that wouldn't have any side effects.
To help you replicate the issue, I'm calling
upload
as follows:client.upload('some_path.xlsx', contents, mode: :overwrite)
contents
is generated as follows:By applying this commit, it works fine for me.
cc/ @simi for the inspiration on the fix