Learn how to store and access files with QuickBlox file storage.
upload()
method below.
upload()
method accepts one argument of the object type that has the following fields:
Field | Required | Description |
---|---|---|
url | yes | URL of a file. |
public | no | Boolean parameter. Specifies file visibility. If the file is public then it’s possible to download it without a session token. Default: false. |
QB.content.subscribeUploadProgress()
method. This method will emit QB.content.EVENT_TYPE.FILE_UPLOAD_PROGRESS
event each time an upload progress for this file changes. Once the upload is finished, you can unsubscribe from upload progress events using the QB.content.unsubscribeUploadProgress()
method.
Basic | Startup | Growth | HIPAA | Enterprise | |
---|---|---|---|---|---|
File size limit | 10 Mb | 25 Mb | 50Mb | 50Mb | Contact our sales team |
getInfo()
method below. This method allows to load the file description model from the server, not the content of the file itself.
getInfo()
method accepts one argument of the object type that has the following fields:
Field | Required | Description |
---|---|---|
id | yes | ID of the file. |
getPublicUrl()
method accepts one argument of the object type that has the following fields:
Field | Required | Description |
---|---|---|
uid | yes | File unique identifier. You can take the uid from the file recieved as a result of the getInfo() method. |
getPrivateURL()
method accepts one argument of the object type that has the following fields:
Field | Required | Description |
---|---|---|
uid | yes | File unique identifier. You can take the UID from the file recieved as a result of the getInfo() method. |