I've been stuck on this for hours and I don't know how to proceed. I'm using Google's V3 Drive API to create a resumable request for large file creation.
When I use uploadFile(), it's creating images on my GDrive that are of 0 bytes (if binaryStreamOnly is true) or 46 bytes (if binaryStreamOnly is false). When I try to open the photo, I get "file is empty" error or a "file is corrupted" error.
The file that I'm trying to upload is the default waterfall picture that comes with the simulator's photo library. What am I doing wrong?
Google's API requires that I do an initial POST request call to generate a resumable upload link, then upload the data in a PUT request (which is what I'm using uploadFile() for.
Any help would be greatly appreciated as I've been struggling to get this to work.
I've been stuck on this for hours and I don't know how to proceed. I'm using Google's V3 Drive API to create a resumable request for large file creation.
When I use
uploadFile()
, it's creating images on my GDrive that are of 0 bytes (ifbinaryStreamOnly
is true) or 46 bytes (ifbinaryStreamOnly
is false). When I try to open the photo, I get "file is empty" error or a "file is corrupted" error.The file that I'm trying to upload is the default waterfall picture that comes with the simulator's photo library. What am I doing wrong?
Google's API requires that I do an initial POST request call to generate a resumable upload link, then upload the data in a PUT request (which is what I'm using
uploadFile()
for.Any help would be greatly appreciated as I've been struggling to get this to work.
Also, thanks a lot for this amazing library!