Upload Files
Uploading Files with ExaDrive SDK
Basic Usage
Syntax
exaDriveuploadFile(filePath: string, directoryPath: string)Example
# notice the preceding '/' in the directoryPath
exaDrive.uploadFile('path/to/file.png', '/myapp1/images')
.then((res) => {
console.log(res.data);
})
.catch((error) => {
console.error('Upload failed:', error);
});Response Structure
Sample Response
Response Fields
Advanced Usage
Batch Uploads
Best Practices
uploadMulterFile
uploadMulterFileSample Response
uploadFileWithBuffer
uploadFileWithBufferSample Response
Last updated