Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
Ashish1
8 years agoExplorer | Level 3
how to get Responce_type in client side?
Hi Team Thanks in advance .i am working on mvc application and got some requirtment to attach a file from drop box.i m useing drop box api where i need to redirect page to "https://www.dropbox...
Greg-DB
Dropbox Staff
8 years agoYou do need to send the user to the /oauth2/authorize page for them to authorize your app, so you can't get an authorization code directly on your own page.
Instead though, you could look into either:
1) sending them there in a pop-up or new tab/window, so that they don't lose the contents of your page
or
2) saving the relevant page state somewhere, such as in local storage or a cookie, or by sending it through the Dropbox OAuth app authorization flow in the 'state' parameter, as documented here: https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize
Instead though, you could look into either:
1) sending them there in a pop-up or new tab/window, so that they don't lose the contents of your page
or
2) saving the relevant page state somewhere, such as in local storage or a cookie, or by sending it through the Dropbox OAuth app authorization flow in the 'state' parameter, as documented here: https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize
Ashish1
8 years agoExplorer | Level 3
Hi
Thanks for your reply but opening in new pop up will load the same page in current pop up not in the parent pop up box.
saveing data in local storage could be headche as form data may be too much.
is there ia any other solution?
- Greg-DB8 years ago
Dropbox Staff
I listed everything that came to mind in my last post. I recommend using the "state" parameter on /oauth2/authorize.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,970 PostsLatest Activity: 6 hours ago
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 or Facebook.
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!