synUploadFileHandle | R Documentation |
Uploads the file in the provided path (if necessary) to a storage location based on project settings. Returns a new FileHandle as a named list to represent the stored file.
synUploadFileHandle(path, parent, synapseStore=TRUE, mimetype=NULL, md5=NULL, file_size=NULL, file_type=NULL)
path |
file path to the file being uploaded |
parent |
parent of the entity to which we upload. |
synapseStore |
If FALSE, will not upload the file, but instead create an ExternalFileHandle that references the file on the local machine. |
mimetype |
The MIME type metadata for the uploaded file |
md5 |
The MD5 checksum for the file, if known. Otherwise if the file is a local file, it will be calculated automatically. |
file_size |
The size the file, if known. Otherwise if the file is a local file, it will be calculated automatically. |
file_type |
Optional named parameter: The MIME type the file, if known. Otherwise if the file is a local file, it will be calculated automatically. |
a new FileHandle (the metadata for the uploaded file) as a named list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.