Content
Methods
-
private,staticQB.content.create(params, callback)
modules/qbContent.js, line 69 -
Create new file object.
Name Type Description paramsobject Object of parameters. Name Type Default Description content_typestring The file's mime(content type). namestring The file's name. publicboolean false optional The file's visibility. public means it will be possible to access this file without QuickBlox session token provided. Default is 'false'. callbackcreateFileCallback The createFileCallback function. -
staticQB.content.createAndUpload(params, callback)
modules/qbContent.js, line 122 -
Create file > upload file > mark file as uploaded > return result(read more).
Name Type Description paramsobject Object of parameters. Name Type Default Description fileobject File object. namestring The file's name. typestring The file's mime (content type). sizenumber Size of file, in bytes. publicboolean false optional The file's visibility. public means it will be possible to access this file without QuickBlox session token provided. Default is 'false'. callbackcreateAndUploadFileCallback The createAndUploadFileCallback function. -
staticQB.content.delete(id, callback)
modules/qbContent.js, line 95 -
Delete file by id(read more).
Name Type Description idNumber blob_id. callbackdeleteFileCallback The deleteFileCallback function. -
staticQB.content.getFile(uid, callback)
modules/qbContent.js, line 292 -
Download file by UID. If the file is public then it's possible to download it without a session token(read more).
Name Type Description uidString File object uid. callbackdownloadFileByUIDCallback The downloadFileByUIDCallback function. -
staticQB.content.getInfo(id, callback)
modules/qbContent.js, line 270 -
Retrieve file object info by id(read more).
Name Type Description idnumber File object id. callbackgetFileInfoByIdCallback The getFileInfoByIdCallback function return file's object. -
staticQB.content.list(params, callback)
modules/qbContent.js, line 38 -
Get a list of files for current user(read more).
Name Type Description paramsobject Object of parameters. Name Type Default Description pagenumber 1 optional Used to paginate the results when more than one page of files retrieved. per_pagenumber 10 optional The maximum number of files to return per page, if not specified then the default is 10. callbacklistOfFilesCallback The listOfFilesCallback function. -
private,staticQB.content.markUploaded(params, callback)
modules/qbContent.js, line 241 -
Declare file uploaded. The file's 'status' field will be set to 'complete'.
Name Type Description paramsobject Object of parameters. Name Type Description blob_idnumber The id of file to declare as uploaded. sizenumber Size of file, in bytes. callbackmarkUploadedFileCallback The markUploadedFileCallback function. -
staticQB.content.privateUrl(fileUID)
modules/qbContent.js, line 345 -
Get private URL for file download by file_uid (blob_uid) (read more).
Name Type Description fileUIDString File object id. -
staticQB.content.publicUrl(fileUID)
modules/qbContent.js, line 354 -
Get public URL for file download by file_uid (blob_uid) (read more).
Name Type Description fileUIDString File object id. -
staticQB.content.update(params, callback)
modules/qbContent.js, line 316 -
Edit a file by ID(read more).
Name Type Description paramsobject Object of parameters. Name Type Description idnumber File object id. namestring optional New file name. callbackupdateFileCallback The updateFileCallback function. -
private,staticQB.content.upload(params, callback)
modules/qbContent.js, line 208 -
Upload a file to cloud storage.
Name Type Description paramsObject Object of parameters (see into source code of QB.content.createAndUpload(params, callback) to know how to prepare the params object). Name Type Description urlstring File url. dataobject Formed data with file. callbackuploadFileCallback The uploadFileCallback function.