How to serve HTML off my dropbox

It was great while it lasted, folks. Dropbox has ended support for serving HTML files as of today for Basic users.

Dropbox Basic (free) users: Beginning October 3, 2016, you can no longer use shared links to render HTML content in a web browser. If you created a website that directly displays HTML content from your Dropbox, it will no longer render in the browser. The HTML content itself will still remain in your Dropbox and can be shared.

Dropbox Pro and Business users: Beginning September 1, 2017, you can no longer render HTML content.

from https://www.dropbox.com/help/16


I believe you can modify your file's 'shared' dropbox link to serve HTML from DB directly.

  1. Upload your html file to dropbox and click the file's 'Share' link:

    enter image description here

  2. Copy the "Link to file"

    enter image description here

  3. Modify the link by replacing 'www.dropbox.com' with 'dl.dropboxusercontent.com'

    Before

    https://www.dropbox.com/s/s8ffr2v08jc2f7d/fakeHTMLpage.html?dl=0
    

    After

    https://dl.dropboxusercontent.com/s/s8ffr2v08jc2f7d/fakeHTMLpage.html?dl=0
    
  4. Try it!

I'd love feedback if this worked for you guys!


The file must be in your Public folder in order to be rendered as HTML, it can't just be a shared link.

NB: Accounts created after October 4, 2012 do not have a Public folder unless you upgrade to a Pro account.

Tags:

Dropbox