0
Mime Types : application/octet-stream

/t5/coldfusion-discussions/mime-types-application-octet-stream/td-p/494564
Nov 09, 2007
Nov 09, 2007
Copy link to clipboard
Copied
When using CFFILE, I am allowing "text/xml". Client is saving
MS Excel as XML. Many test done and has worked until today when the
error started occuring that the MIME type is not accepted. I do
understand that the "application/octet-stream" MIME type is
generated (sometimes) when a file is viewed or save in a word
process or spreadsheet application.
The question is ... are there security concerns if I allow "application/octet-stream" MIME type to be uploaded to the server?
Any thoughts or conerns would be appreciated.
-jb
The question is ... are there security concerns if I allow "application/octet-stream" MIME type to be uploaded to the server?
Any thoughts or conerns would be appreciated.
-jb
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advisor
,
LATEST
/t5/coldfusion-discussions/mime-types-application-octet-stream/m-p/494565#M44859
Nov 09, 2007
Nov 09, 2007
Copy link to clipboard
Copied
The MIME type is provided by the client browser. Is the
browser posting an XML file and sending the MIME type as
pplication/octet-stream instead of text/xml? In Windows/Internet
Explorer MIME types and extensions are associated by a registry
entry. If you have access to the client's PC you may wish to check
this.
If you allow application/octet-stream you are opening yourself up. I also recommend you check file extensions and only accept uploads from trusted sources.
If you allow application/octet-stream you are opening yourself up. I also recommend you check file extensions and only accept uploads from trusted sources.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

