This is an old revision of the document!


Download a File

http://host/downloadfile?filepath=directory_path/file_name&filename=file_name

Inputs:

  • filepath: path (including file name) to target file to download
  • filename: target file to download

Outputs:

  • type: downloadfile
  • result: 1 for success and 0 for fail (this doesn’t really need to be checked because the file will download and you will see it, or it won’t)

Upload File

http://host/upload?appname=explorer&path=/directory_path&expandzip=numerical_value

Inputs:

  • path: Path to upload to
  • expandzip: is for expanding uploaded zip files (1 = expand, 0 = no expand)

Outputs:

  • Success or failure message

Zip Files in a Folder

http://host/core/startzip?path=directory_path&time=epoch_time
http://host/core/zipstatus?id=zip_id&time=epoch_time

Note: files will be zipped with the following name Tonido_Zip_<zip job id>.zip

Inputs (startzip):

  • path: Path to folder containing contents to zip
  • time: epoch time in seconds

Outputs (startzip):

  • type: startzip
  • result: 1 for success and 0 for fail
  • message: id for zip job

Inputs (zipstatus):

  • id: id for zip job returned by startzip
  • time: epoch time in seconds

Outputs (zipstatus):

  • type: zipstatus
  • result: 1 for finished and 0 for still zipping
  • message: current files that were zipped (files are separated with the following delimiter: [b]nline_[/b])

Abort Zip

To Do

Download Folder

http://host/core/startzip?path=directory_path&time=epoch_time
http://host/core/zipstatus?id=zip_id&time=epoch_time
http://host/core/downloadaszip?id=zip_id

Note: See Zipping Files in Folder to view inputs and outputs for startzip and zipstatus

Inputs (downloadaszip):

  • id: zip job id returned from startzip

Outputs (startzip):

  • Todo: (doesn’t really need to be checked. Download will start or it won’t)

Get Thumbnails

To Do

*More to come*