Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented Jun 7, 2018
This issue has originally been reported by @cebe at luyadev/luya-module-cms#85. I uploaded a PDF file for download. Linking to that file presents the dowload as Given that |
referenced this issue Jun 7, 2018
ClosedFile download Content-Type is application/octet-stream #85
Application/octet-stream Filename
referenced this issue Jun 7, 2018
MergedFix MIME type and download counter on file download #149
I am struggling to open an important pdf file I have on my ubuntu 12.04, which is probably created on MS Windows(assuming since it has some formatting issue). When I open the file using a PDF viewer it show me this error: File type unknown (application/octet-stream) is not supported
I tried to open it using console, too. Here is the output:
Can anybody help me with solving this issue and to fix this?
Thanks Surya
1 Answer
MIME type for a PDF on Ubuntu is application/pdf
but application/octet-stream
(meaning any generic binary file) is a sort of catch all for files, and usually requires a file extension to determine what to open it with.
Download the PDF locally and save it as a PDF, making sure there is .pdf
at the end.