I am not affiliated with Openload and/or its owners in any way. suggested also setting a filename if uploading file path instead of buffer.suggested to update got due to incompatibilities when using node-openload with Electron.Please fork this repository, open a pull request and drop me a line on twitter. Please report any bugs or issues to the issues section. If an error occurs, the module rejects the Promise using an Error object containing short informational message. getSplashImage(file)Īll provided functions return a Promise. (only required if using a buffer)Ĭb: Callback function to display the upload progress in the form of got's uploadProgress event. obj.contentType: The file's content type.obj.folder: The folder ID you want to upload to.obj.file: A buffer or the local path of your desired file.Obj: Object containing data for the upload: (not required) getFolder(folder)ĭuplicate of listFolder(folder). List contents (folders, files) of given folder id.įolder: The folder ID you want the contents listed of. deleteFile(file)įile: might consist of an Array or a string of comma-seperated file IDs. getFileInfo(file)įile: might consist of an Array or a string of comma-seperated file IDs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |