Search code examples
htmljsfiddle

How to add a local file in JSfiddle?


<a href="1.html">

In my HTML document, how do I add 1.html to jsfiddle so that it can provide a link to the file?

I know there is an external file tab in the JSfiddle button but I guess it is for URLs. Mine is a local file. Any help would be much appreciated.


Solution

  • You could use orionhub.org to host your file, link to it from fiddle. On Orion, you'd have to create the project, add file to it, make the file visible to the external world as part of that project. It's a bit convoluted at first, but makes sense and you'll get used to it.

    Detailed steps for making certain resource publicly available via Orion:

    1. Import/create a file
    2. Select View on Site via Open Related menu

    enter image description here

    1. Add a site (if not exists) and copy the public link from View

    enter image description here

    UPDATE 2019/06/26 - codesandbox.io seems to allow file upload, but may not allow hotlinking to it. It might be time to move that altogether. (if the circumstances warrant, of course)