Add Running tasks article and various corrections
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Uploading a file
|
||||
This page documents how to upload a file through the FarmMaps API.
|
||||
The FarmMaps file upload API follows the [Google Drive API](https://developers.google.com/drive/api/v3/manage-uploads#resumable) loosely.
|
||||
The FarmMaps file upload API follows the [Google Drive API](https://developers.google.com/drive/api/v3/manage-uploads#resumable) loosely.
|
||||
Files smaller than 2 MB are uploaded in a single part, larger files need to be split into parts of 1 MB.
|
||||
|
||||
The workflow for uploading a file is as follows:
|
||||
* Register the file for upload.
|
||||
@@ -13,7 +14,7 @@ The workflow for uploading a file is as follows:
|
||||
### Registering the upload
|
||||
Before a file can be uploaded it needs to be registered. Files smaller than 2 MB can be uploaded in one chunk.
|
||||
Bigger files need to be uploaded in chunks of 1 MB. The uploaded files are structured in a hierarchy, so we'll specify a `parentCode` to identify its parent.
|
||||
We'll first retrieve this parentcode using a GET request.
|
||||
We'll first retrieve this parentcode using a GET request to the "my_drive" (root)folder.
|
||||
|
||||
**Request**
|
||||
Replace `<acces token>` with your actual token.
|
||||
|
||||
Reference in New Issue
Block a user