Closed faaizalikhan1 closed 3 years ago
Hi! I am trying to upload a file with filename param, but getting the above error, this is my code:
await fsclient.upload(data, { filename: 'test.webp' });
it works fine when I don't have the filename param, data is the image buffer.
Yup because you need to pass filename param as store options, not upload options so check await fsclient.upload(data, {}, { filename: 'test.webp' });
Hi! I am trying to upload a file with filename param, but getting the above error, this is my code:
await fsclient.upload(data, { filename: 'test.webp' });
it works fine when I don't have the filename param, data is the image buffer.