Upload a File
Upload a File to the storage of your choice with Filestack
You can add Filestack to your project quickly and easily using our CDN
Or by installing Filestack-JS using NPM
You will need to instantiate the client with your API key and security or CNAME if they apply to you.
The first parameter to upload must be a valid File, Blob, or base64 encoded string
const client = filestack.init('Your_API_Key'); client.upload(file, uploadOptions, storeOptions, token);