dropbox / dropbox/dropbox-sdk-js

Uploading file from the path but not as a string/buffer?

Open
#739 8 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
970
Forks
353
Avg merge
9h 3m
Merged PRs (30d)
2

Description

**Before you start**
Have you checked StackOverflow, previous issues, and Dropbox Developer Forums for help?
Yes.

**What is your question?**
I want to implement a direct file uploading from a client to the Dropbox without a need of creating a buffer on the application server. This is critical in case of big files, which can't be stored as a buffer on the application server in a whole.

I've found a thread from 2017: [Url of the file instead of a buffer in uploadSessionAppendV2?](https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Url-of-the-file-instead-of-a-buffer-in-uploadSessionAppendV2/td-p/212600), where it is stated: _«No, unfortunately the API v2 JavaScript SDK only supports supplying the file content as string or buffer, but I'll be sure to pass this along as a feature request.»_ Are there any changes since that time?

As a middleware, I'm using [`formidable`](https://github.com/node-formidable/formidable), which contains `fileWriteStreamHandler`: _«If you are looking to write the file uploaded in other types of cloud storages (AWS S3, Azure blob storage, Google cloud storage) or private file storage, this is the option you're looking for.»_

Is there any way to forward an uploading file directly to Dropbox and minimize an application server CPU & RAM overloading?

This is especially **critically** when we're talking about uploading big files, which application server **can't handle in the RAM** in whole.

**Versions**
* What version of the SDK are you using? 10.4.3
* What version of the language are you using? ES-2021
* Are you using Javascript or Typescript? JS
* What platform are you using? (if applicable) Node.js

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.