Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Electrify2015
9 years agoExplorer | Level 4
Save files to dropbox using the save file function
Hi, Today i saw this feature that allow a user to just click a button to save the file to the dropbox account. So i was thinking in taking advantage of this feature by creating a page were i just ...
Greg-DB
Dropbox Community Moderator
9 years agoIt sounds like you'd be interested in using the Dropbox Saver. You can find the full documentation and instructions for using that here:
https://www.dropbox.com/developers/saver
If that's not working for you, I'll be happy to help, but I'll need some more information. In that case, please reply with:
- the full text of the error/any output
- the relevant code snippet(s)
https://www.dropbox.com/developers/saver
If that's not working for you, I'll be happy to help, but I'll need some more information. In that case, please reply with:
- the full text of the error/any output
- the relevant code snippet(s)
Electrify2015
9 years agoExplorer | Level 4
Hi, have tried diferent ways to build it without any luck. All i want is a simple html form that when i click on it the file gets saved in the logged in dropbox account.
I'm getting this error:
{"error": "Invalid origin"}
Do you have a full path to send a get or post request and save the file.
Thanks
I'm getting this error:
{"error": "Invalid origin"}
Do you have a full path to send a get or post request and save the file.
Thanks
- Greg-DB9 years ago
Dropbox Community Moderator
Are you trying to run the Saver from a file:// URL by any chance? That can result in that error.
When using the Chooser or Saver, you'll need to run it from a server, so that Dropbox can verify the domain. (That is, since you need to pre-register the domains you'll user your Chooser or Saver on via the App Console: https://www.dropbox.com/developers/apps )
Try running it from a server instead. (You can even use a localhost server while developing it.)- Electrify20159 years agoExplorer | Level 4
I tried a localhost http server and didn't work either. I did add http://127.0.0.1 and localhost on the app section on the dropbox site.
I get the following error:{"error": "Origin does not match any app domain"}- Greg-DB9 years ago
Dropbox Community Moderator
The domain for the URL of the page you host the Saver needs to exactly match one of your pre-registered Chooser/Saver domains. (Make sure you don't register an "OAuth 2 redirect URI", as that's not for the Chooser/Saver.)
So, for example, register "localhost" and then access your page from http://localhost (plus whatever port and path you need).
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!