Cannot download HTML files; they create a 15kb download.html file which is downloaded instead.
Describe the bug If I have an HTML file as part of a model's files, I cannot download it. Instead the site creates a download.html file, which my browser dutifully downloads.
To Reproduce Steps to reproduce the behavior:
- Go to any model and upload an HTML file
- Save the model, then click the "Download" icon button.
- The browser downloads download.html instead of the actual file. (The downloaded file appears to try to embed the file.)
Expected behavior The original file added to the model should be downloaded.
Screenshots
Desktop (please complete the following information):
- OS: macOS
- Browser: Safari, Firefox, Chromium
Smartphone (please complete the following information):
- not tested
Additional context Discovered along with https://github.com/manyfold3d/manyfold/issues/5014
Yeah, HTML is awkward because the media types get confused. #3662 is the same sort of problem. I'll see what I can do. 👍🏻
Yeah, HTML is awkward because the media types get confused.
Things like this kill me. It's why the original Mac tracked both file types and creators (an attribute largely thrown out by Mac OS X). So the same file type could be handled differently depending on what it's for. Oh well, progress marches on?
Thanks for looking at it. Manyfold is such a great tool to have in my toolbox!
Problem is that Manyfold works out what to send you based on the media type that's asked for, so in the case of HTML, it sends you the normal HTML view, not the file content. I'll work something out though, I need to do the same for javascript as well.
+1 I'm experiencing the same issue with 3MF files
@mrsdoubtfire613 I think 3MF is a different problem with a similar result, probably #4951. If you download a 3MF which shows a Load Error due to that issue, it will give you a "download.html" error file. You should find that the zipped download is OK though.