You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Bob A.3
9 years agoNew member | Level 2
Saving URL to act as a URL Redirect?
I would like to be able to make a share link to a Dropbox file that itself contains a URL such that when the user executes the first link in their browser the end result is that the URL stored in the...
- 9 years ago
Yes, just fire off a GET request (via ajax or fetch, or your favourite http lib) to the exact public url for the file.
Ensure the file is structured as JSON, and you should be able to either directly read the response as JSON, or you may have to JSON.parse() it, and theres your data.
Then do your favourite JS redirect.
The only issue is that the .html file which triggers all that cannot be stored on Dropbox as a public or shared link, it has to be stored elsewhere.
Bob A.3
9 years agoNew member | Level 2
There is no server involved with regard to my html so 301's etc can't be used.
Maybe I should ask the question this way...
Can I use Javascript to download a file from drop box via a public link. (ie. person not logged into Dropbox) and ingest the data (link) stored in that file into a JavaScript variable?
If I can do that then I can have the JavaScript then fire off that link that it got from the downloaded Dropbox file.
About Create, upload, and share
Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.
Need more support
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!