Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

2.0.8 .html rendering in Chrome .html text only

edited October 2015 in Help! with 2.0
I have been looking for this answer, but I can quite see to find the solution I need.

I used Twine 2.0.8 to create a project. When I select Publish To File, an .html is created on my desktop. I can import that document back into Twine and play it in Chrome without any problems.

However, when I upload the file as an attachment, then download it, I get a .html file that doesn't seem to work. I cannot import it into Twine. (Sorry, there is no story contained in this file.) And, when I open it in Chrome, it's not rendered and all I get is lines of the html code.

I need to share my file with someone and know that they can open it without running into any problems. I expect the .html file would open just fine in a browser, but that doesn't seem to be the case.

Please help.

P.S. I am using a mac with Yosemite 10.10.4

Comments

  • note: I don't use a Mac

    You don't explain how you are uploading the HTML file as an attachment, nor to which service you are uploading to. It is possible that that process is modifying the HTML file in some way.

    You could create a ZIP file containing your HTML and upload the ZIP file instead.
  • edited October 2015
    I'm an applicant, applying to a job through a corporate website. The website will not allow me to upload a zip file, however it does let me upload the html file. Once I've uploaded the file, I am given the option of downloading it. However, the downloaded file does not work properly.

    I want to make sure there is not something I can do on my end to make sure that the recruiter gets a working .html file.
  • note: The HTML file created by Twine is not just a HTML file, it is actually a web-application containing a Javascript engine.

    One possibility is that you are downloading the file incorrectly, especially if you are using a "Link Save As" process but without knowing how the website implements it's downloads it is hard to know.

    Another possibility is that the website is modifying the HTML file in some way, like stripping out any Javascript it finds in the HTML for security reasons. This would explain why it does not run and also possible why it know longer imports because the importer relies on the HTML file having a known structure.

    Would you be willing to share a copy of the damaged HTML file (the one you download from the corporate website) so I can debug it.
    If you are then could you ZIP the damaged file, upload it to a file sharing site and PM the link to it. I will keep the personal information contain within the file private.
  • I think you were right with your second guess. It does appear that the website was stripping out the Javascript, though considering the types of applications that they must receive on a regular basis, it doesn't make much sense.

    My workaround was to upload the document to dropbox, and provide a download link. I tested it, and the .html file seems to be completely intact. I included a link in my cover letter to the .html file on dropbox, and a link to where it is hosted philome.la.

    I went ahead an uploaded it to their site, but I suspect they'll notice the issues pretty quickly.

    Thanks,
  • It is not uncommon for websites to disable/strip out Javascript contained within an uploaded HTML file because it is common attack vector used by hackers.
    I would be more worried from an IT security point of view about a company that was not doing so. lol
Sign In or Register to comment.