Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Download file from server

baart92 edited this page May 24, 2014 · 3 revisions

URL:

{serverAddress}/api/files/download/$login/$sid/$fileid

Method:

GET

Content-type:

?

Method for web application:

public static Object web_download(String login, String sid, String fileid) in controllers.FilesManagement

Description:

Downloads file from server

Input:

$login = your login
$sid = id of current session
$fileid id of file

Output OK:

RAW file

Output error:

{
  "status": "failed",
  "reason": "reason of error"
}

Types of reasons:

  • incorrect sid - incorrect session id
  • you are not a member
  • file not found