Description Usage Arguments Details Value Examples
This is the first operation performed when you wish to upload a file. Operation is initialized by providing file name, project id where you wish the file to be uploaded to (if not specified, defaults to user's stash) and optionally by providing wanted part size. You may wish to set your part size to a low value if you experience problems with uploading large file parts, although default value of 5MB should be good enough for most users.
1 2 3 4 5 6 7 8 |
auth_token |
auth token |
project_id |
ID of the project you wish to upload to |
name |
Name of the file you wish to upload |
size |
Size of the file you wish to upload |
part_size |
Requested part size. Note that API may reject your requested part size and return proper one in response. |
... |
parameters passed to sbgapi function |
Limits:
Maximum number of parts is 10000
Maximum file size is 5TB
Maximum part size is 5GB
Default part size is 5MB
parsed list of the returned json
1 2 3 4 | token = '58aeb140-1970-0130-6386-001f5b34aa78'
req = upload_init(token,
project_id = 'f0eb447f-3511-4b28-9253-eba96191d432',
name = 'Sample1_RNASeq_chr20.pe_1.fastq', size = 5242880)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.