Meteor-Community-Packages / Meteor-CollectionFS

Reactive file manager for Meteor
MIT License
1.05k stars 237 forks source link

Download error: Frame load interrupted #654

Open zimt28 opened 9 years ago

zimt28 commented 9 years ago

Using a url generated by fsFile.url({ download: true}), the download works, but I get an error logged:

[Error] Failed to load resource: Frame load interrupted (out.pdf, line 0)

This breaks my application when providing a download link.

I've tried different pdf files, just to make sure. And the pdf was downloaded by CollectionFS by using fsCollection.insert(url)

Edit: The error above came from Safari, Chrome logs:

Resource interpreted as Document but transferred with MIME type application/pdf

This SO answer suggests setting the Content-Length. I've also just used a url from another webservice I use, and it didn't break.

zimt28 commented 9 years ago

Download doesn't break the app using targed="_parent". But still an issue.

ldong commented 9 years ago

@zimt28 Try to catch the error from jqXHR.status, which is 0. Let me know how it goes.