Open zimt28 opened 9 years ago
Using a url generated by fsFile.url({ download: true}), the download works, but I get an error logged:
fsFile.url({ download: true})
[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)
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.
Content-Length
Download doesn't break the app using targed="_parent". But still an issue.
targed="_parent"
@zimt28 Try to catch the error from jqXHR.status, which is 0. Let me know how it goes.
Using a url generated by
fsFile.url({ download: true})
, the download works, but I get an error logged: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:
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.