RO INC DOCUMENTATION
Doc of download API
The download API allows to download the file from the server by using REST request. Browser is not needed for it.
The download API will only work on the file that is uploaded by the logged in user .
It also means, that PHPSESSID
cookie is required to use download API
Thank you for using RO INC documentation. Please sorry me for the bad grammars.
ENDPOINT
GET /uploader/downloadapi?fid=12345
PARAMETER
fid
(REQUIRED) - The File id of the file to be downloaded.
RESPONSE
- Returns JSON response.
- Returns
{ "Message" : "Error message..." }
on an errors.
EXAMPLE RESPONSE
-
{ "DownloadUrl" : "https://ro-inc.xyz/uploader/download_file.php?token=...", "UploadedBy" : "admin", "UploaderPic" : "./avatars/85738FB53C1FE3BCE5D6BC6B30F19568.png", "Desc" : null, "ScanResult" : "clean", "ModifiedXTimes" : 0, "AdminVerification" : "unverified", "LastModifiedOn" : "2025-06-25 22:34:24", "Extension" : "MP3", "CroppedName" : "File.mp3", "Icon" : "https://static.ro-inc.xyz/fileicons/ic_file_mp3.png", "UploadedOn" : "2025-06-25 22:33:28", "FileSize" : 4809593, "FileSize2" : "4.6 MB" }
-
EXPLANATION OF FIELDS
DownloadUrl
- Please fetch the URL to download file.UploadedBy
- Name of user that uploaded.UploaderPic
- Relative Picture of the profile picture of the uploader to https://ro-inc.xyz .Desc
- Optional Description that appare only in published files.ScanResult
- The scan result of Anti-Virus scan. Can be"notclean"
,"failed"
,"scanning"
, and"clean"
.ModifiedXTimes
- The number the files is modified times.AdminVerification
- Admin verification of the file. Can be"verified"
,"unsafe"
,"malware"
, and"unverified"
.LastModifiedOn
- Last modified on time and date. Human readable format.Extension
- File extension.CroppedName
- The cropped file name of the file, please use when displaying the name.Icon
- The icon hosted on RO INC server for the file.UploadedOn
- Uploaded on time and date. Human readable format.FileSize
- File size in bytes.FileSize2
- File size formatted. Human readable format.