resume-upload

Google Drive Python API resumable upload error 401 after 2 hours

血红的双手。 提交于 2019-12-17 17:06:50
问题 First of all, I'm sorry if this is a too silly question... this is the first time I'm trying to use any of the technologies involved in this script (Python, the drive api, oauth 2.0, etc). I swear I've been searching and trying this for about a week before posting the question. hehehe I'm trying to use the google-api-python-client to upload a big file (3.5GiB) that is on a terminal only Linux Debian. I've had some success uploading small files, but when I try to upload the big file, the

Google Drive SDK / c++ / Rest API resumable upload

风格不统一 提交于 2019-12-11 02:56:42
问题 I have seen discussion in internet about problems (or bugs in Google Drive SDK ) with resumable uploading to google Drive https://developers.google.com/drive/web/manage-uploads#resumable and the problem with access_token when it expires after one hour .. Is there a possibility now ( I understood there should be ) to refresh access token for this ongoing upload ? I did the test implementation for this but it did not work, when I updated the refreshed access token? but is this now bug in my

Android Google Drive Resumable Upload fails very often

六眼飞鱼酱① 提交于 2019-12-10 18:38:33
问题 I have problem with uploading mp4 files to google drive. I am using resumable upload. Chunk size is set as multiplicity of minimal size(depending on file size to be uploaded in order to make progress bar working). Upload of small files is working almost always. But when file is about 50 MB upload fails very often. There is exception EOFException at the very beginning of upload or exception " Unexpected end of stream " somewhere in the middle of upload. After many tests it looks that behaviour

Resumable upload using Google Client API . Invalid Upload URL

痴心易碎 提交于 2019-12-10 12:25:56
问题 I am unable to perform resumable upload using this api please Help Me.This Code Working Fine Until i used resumable Upload . I can Upload FIle Using Multipart but not able upload big files with multipart MY Code $storageObject->setName("FIle Name.mp3"); $storageObject->setBucket($data["bucket_name"]); $mimetype = mime_content_type($data["temp_name"]); $chunkSizeBytes = 1 * 1024 * 1024; $storageClient->setDefer(true); $status = false; $filetoupload = array('name' => "FIle Name.mp3",

Upload large files to WebDAV with resume support

假如想象 提交于 2019-12-10 12:04:14
问题 I want to upload large files to ownCloud with WebDAV API. I use this code to do this: <?php $url = "http://user:password@owncloud.local/remote.php/webdav/test.mp4"; $localfile = "test.mp4"; $fp = fopen ($localfile, "r"); $ch = curl_init(); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_PUT, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_INFILE, $fp); curl_setopt($ch, CURLOPT_INFILESIZE, filesize($localfile));

Resumable uploading to Google Cloud Storage using PHP API

久未见 提交于 2019-12-09 21:29:17
问题 I can successfully upload small size files to Google Cloud Storage using Google PHP API CLIENT, But cant upload a 300MB file. Return with memory error. Here is my code. $storage = new Google_Service_Storage($client); $file_name = "filenameo.zip"; $obj = new Google_Service_Storage_StorageObject(); $obj->setName($file_name); $resp = $storage->objects->insert( "bucketname", $obj, array('name' => $file_name, 'data' => file_get_contents("300mb-file.zip"), 'uploadType' => 'media') ); i tried to

How to optimize upload routine using Delphi 2010?

蓝咒 提交于 2019-12-05 04:43:38
My yet to be released Delphi 2010 application allows users to upload their files to my servers. Right now I'm using HTTPS POST to send the files, the (simplified) algorithm is basically: Split File into "slices" (256KB each) For each slice, POST it to server ie. for a 1MB file: --> Get Slice #1 (256KB) --> Upload Slice #1 using TidHTTP.Post() --> Get Slice #2 (256KB) --> Upload Slice #2 using TidHTTP.Post() --> Get Slice #3 (256KB) --> Upload Slice #3 using TidHTTP.Post() --> Get Slice #4 (256KB) --> Upload Slice #4 using TidHTTP.Post() I'm using Indy 10 . I (ab)used my profiler over and over

YouTube C# API V3, how do you resume an interrupted upload?

我怕爱的太早我们不能终老 提交于 2019-12-01 06:49:11
问题 I can't work out how to resume an interrupted upload in V3 of the C# YouTube API. My existing code uses V1 and works fine but I'm switching to V3. If I call UploadAsync() without changing anything, it starts from the beginning. Using Fiddler, I can see the protocol given here is not followed and the upload restarts. I've tried setting the position within the stream as per V1 but there is no ResumeAsync() method available. The Python example uses NextChunk but the SendNextChunk method is

Google Drive Python API resumable upload error 401 after 2 hours

落花浮王杯 提交于 2019-11-28 02:00:50
First of all, I'm sorry if this is a too silly question... this is the first time I'm trying to use any of the technologies involved in this script (Python, the drive api, oauth 2.0, etc). I swear I've been searching and trying this for about a week before posting the question. hehehe I'm trying to use the google-api-python-client to upload a big file (3.5GiB) that is on a terminal only Linux Debian. I've had some success uploading small files, but when I try to upload the big file, the upload stops about 1~2 hours after it started with HTTP 401 error (unauthorized). I've been looking on how