Does the Google Drive API support Content-Range for Uploads? - google-docs-api

Similar to this question: How does Google Drive API support Content-Range for download requests?
but for uploads. Does the Drive/Docs API let you set a range if you want to update some bytes in an existing file?

This depends what you are trying to do.
You can't upload a few bytes to an existing file in a random access way. The API does, however, support the resumable upload protocol so that you can upload large files in chunks. This is fault tolerant per chunk, and uploads can be restarted for any reason if there is a failure.

Related

Google App engine 32MB max request size limit- how to upload large files?

We've got a set up using google appengine with a docker container running a laravel application. Our users need to upload large video files (max 1028MB) to the server which in turn is stored in GCS. But GAE gives an error 413 Request entity too large nginx. I've confirmed this is not an issue on our server configs but a restriction on GAE
This is a pretty common requirement. How do you guys get around this?
What i've tried:
Chunking using this package https://github.com/pionl/laravel-chunk-upload and dropzone.js to break down the file when sending (Still results in 413)
Blobstore API is not applicable for us as we need to constantly retrieved and play the files.
As mentioned by #GAEfan, you can't change this limit on GAE. The recommended approach would be to upload your files to Google Cloud Storage and then process the file from Google Cloud Storage.

How to get MIME type of the uploaded file in Microsoft Graph

While implementing file upload using Microsoft Graph API I faced the issue that once I upload file I don't get MIME type of it. I can't send it via API as well as it's not determined automatically. I use resumable upload API:
https://dev.onedrive.com/items/upload_large_files.htm
I was thinking about determining it from the name(extension part) on my side, when I get the name of the file, but I hope there is a better way to do this with OneDrive Microsoft Graph API.

Access MP3 files on server from iOS.

I'm building a streaming app similar to pandora. However right now I'm storing all my files on http and accessing them with urls. Is there an alernative to this because all the files are in the public html folder? For example how does apps like pandora or spotify pull files off their servers. I'm new to web severs and not sure where to ask this question. I have a centos server on vps hosting with apache, MySQL, http, ftp.
You just need to provide the content as a bit stream rather than a file download. The source of that data to send as a stream can be stored as binary data in a BLOB column in a database or as a regular file on a non-public part of the file system. It really does not mater which one you use.
Storing them in the database gives your app a bit easier access and makes the app more portable since it is not restricted the file system level permissions.
The fact you currently have the files in a public folder is not really that critical of an issue since you are making them available for download. You would just need to make sure you have an authentication requirement if you want to restrict who can access them.

Google Drive API slower than the Documents List API

I've recently migrated our webapp from GDocs to GDrive and I've noticed that even the files.list call takes about 3x longer (~2.5 seconds) than the corresponding Docs call.
This doesn't seem to depend on the size of the response (in fact Docs' XML is larger than Drive's JSON in my test). I've also experienced the same behaviour when doing simple requests via Google's OAuth Playground, so I'd rule out any local connectivity or library issues.
Is there any way to speed up the API calls?
Check the Google Drive SDK documentation for performance tips:
https://developers.google.com/drive/performance
Tips include using gzip and partial response/update.

how to upload a file to gmail using delphi?

I am creating an application which uploads file to gmail account avilable space
can any one please tell me the best way to do it ?
i read somewhere about using IMAP protocol is the best way to upload files or is there any other good way around ?
regards
GMail is not suitable for keeping generic files. Google offers Documents and Data API mechanisms for storing files. You might want to look at them. BTW we have products, which combined let you create a virtual drive with Google backend storage in a couple of hours. Callback File System offers a virtual drive, and CloudBlackbox lets you store data on Amazon S3, MS Azure and on GMail storages.

Resources