Upload blob to dropbox from client-side javascript

frumbert

I have an app that runs in the client browser and doesn't have any server side (http/js is served, but nothing posts to the server). the app is redeployed on many servers (iis, apache, nginx, sometimes localhost, sometimes on an intranet) and are served using http (not https). My app generates files such as zip files and pdf's in the clients browser as blobs BEFORE I want to save, so having them navigate away on the same page then back to the app defeats the purpose; and I can't post the generated data to dropbox anymore, since they have to start over... I want to be able to send these blobs directly to files in the end users dropbox (and later google drive).

https://www.dropbox.com/developers-v1/dropins/saver performs exactly as I would like. It pops up. It lets the user authenticate in the popup. It lets the user choose where they want to put my file. But I can't send it a data uri, or base64-encoded data, or a bytearray, or whatever. It only works with files previously saved somewhere accessible on the net. So it does not work for me.

https://www.newfangled.com/direct-javascript-dropbox-api-usage/ shows how I could embed the oauth data, which I don't have.

https://blogs.dropbox.com/developers/2013/12/writing-a-file-with-the-dropbox-javascript-sdk/ seems like it should work, except that it's trying to perform an oauth session and it uses the same window as my app (which is undesired).

My current tabs I'm looking at (includes entries from a few years ago, so things might have since changed). Some articles indicate that it isn't possible. Other articles incidate that it IS possible - i mean this particular comment https://github.com/dropbox/dropbox-js/issues/144# doesn't help me much. Neither does "I'll be sure to pass this along as feedback" - was it passed along? To whom?

user94559

It sounds like the code from https://blogs.dropbox.com/developers/2013/12/writing-a-file-with-the-dropbox-javascript-sdk/ works fine for you, but you want to do the auth in a separate browser window/tab.

If so, I'd suggest just changing that code to use the Popup auth driver instead.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Upload blob to dropbox from client-side javascript

From Dev

Accessing files on dropbox with client-side Javascript from http only

From Dev

Huge JavaScript HTML5 blob (from large ArrayBuffers) to build a giant file in client side

From Dev

How do I upload to Google Cloud Storage from client-side JavaScript, with Node on the server?

From Dev

Upload file to Amazon s3 - client-side javascript

From Dev

Upload File/s From Client To Azure Blob Storage | MVC

From Dev

Passing objects from servlets to client side(javascript)

From Dev

Passing objects from servlets to client side(javascript)

From Dev

Pass variable from server-side controller to client-side to use in client-side JavaScript

From Dev

Compress files (client side) and upload

From Dev

Compress files (client side) and upload

From Dev

jade and client side javascript

From Dev

javascript client side security

From Dev

jade and client side javascript

From Dev

Timestamp From Client Side

From Dev

Different upload speeds on client and server - calculating upload time on the client side

From Dev

How to get data from MongoDB on client side using javascript/jQuery

From Dev

Retrieve data from InfluxDB with javascript (client-side, using a browser)

From Dev

How to read item from DynamoDB using client side Javascript?

From Dev

How to run received JavaScript from the client side(html, js)?

From Dev

Amazon S3 simple Javascript client-side file-upload issue

From Dev

Amazon S3 simple Javascript client-side file-upload issue

From Dev

How to fetch a .txt file from a different domain from server side javascript and get it client side

From Dev

Django resize image before upload on client side

From Dev

Upload and read file client side, with angular 2

From Dev

remove the value of the Upload editor in client-side

From Dev

Client side file upload using cfs Filesystem

From Dev

jQuery - Getting Image url/link/path to upload image on imgur from client side

From Dev

How to upload an image from client side form to Google cloud storage bucket?

Related Related

  1. 1

    Upload blob to dropbox from client-side javascript

  2. 2

    Accessing files on dropbox with client-side Javascript from http only

  3. 3

    Huge JavaScript HTML5 blob (from large ArrayBuffers) to build a giant file in client side

  4. 4

    How do I upload to Google Cloud Storage from client-side JavaScript, with Node on the server?

  5. 5

    Upload file to Amazon s3 - client-side javascript

  6. 6

    Upload File/s From Client To Azure Blob Storage | MVC

  7. 7

    Passing objects from servlets to client side(javascript)

  8. 8

    Passing objects from servlets to client side(javascript)

  9. 9

    Pass variable from server-side controller to client-side to use in client-side JavaScript

  10. 10

    Compress files (client side) and upload

  11. 11

    Compress files (client side) and upload

  12. 12

    jade and client side javascript

  13. 13

    javascript client side security

  14. 14

    jade and client side javascript

  15. 15

    Timestamp From Client Side

  16. 16

    Different upload speeds on client and server - calculating upload time on the client side

  17. 17

    How to get data from MongoDB on client side using javascript/jQuery

  18. 18

    Retrieve data from InfluxDB with javascript (client-side, using a browser)

  19. 19

    How to read item from DynamoDB using client side Javascript?

  20. 20

    How to run received JavaScript from the client side(html, js)?

  21. 21

    Amazon S3 simple Javascript client-side file-upload issue

  22. 22

    Amazon S3 simple Javascript client-side file-upload issue

  23. 23

    How to fetch a .txt file from a different domain from server side javascript and get it client side

  24. 24

    Django resize image before upload on client side

  25. 25

    Upload and read file client side, with angular 2

  26. 26

    remove the value of the Upload editor in client-side

  27. 27

    Client side file upload using cfs Filesystem

  28. 28

    jQuery - Getting Image url/link/path to upload image on imgur from client side

  29. 29

    How to upload an image from client side form to Google cloud storage bucket?

HotTag

Archive