On Fri, Jan 12, 2018 at 5:01 AM, <
bjar...@gmail.com> wrote:
> I have extension-less DICOM files that I need to determine the proper MIME
> type on when uploaded.
>
> file --b --mime-type MyFile
>
> reports the files as application/dicom so I know they are valid but when
> uploaded through Rails they get the type 'applcation/octet-stream'.
What is doing the "uploading"? If it's through a browser/form, I'd
imagine the browser is setting the Content-Type header.
--
Hassan Schroeder ------------------------
hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote