appwrite/sdk-for-node

๐Ÿš€ Feature: Allow to send raw bytes to storage

Aviortheking opened this issue ยท 3 comments

๐Ÿ”– Feature description

You should add the ability to send Buffers using the Storage.createFile function.

๐ŸŽค Pitch

With the latest version we can't Storage.createFile with anything other than a FS access, but depending on the context sending a raw Buffer is way better than writing to a file and then after sending the same file, also some applications contexts don't have the FS access on nodeJS.

๐Ÿ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

๐Ÿข Have you read the Code of Conduct?

I totally agree!

This change is a result of the SDK being able to do chunked uploads on big files. We would need to investigate on how to solve this ๐Ÿ‘๐Ÿป

@Aviortheking Hey, a PR is being worked on that will allow more flexibility while uploading file. Do provide your feedback if you have any
appwrite/sdk-generator#459

@Aviortheking The latest version should support this. If you have any issues feel free to reopen the issue.