Ruby on Rails Friday, January 12, 2018

On Fri, Jan 12, 2018 at 5:01 AM, <bjarkigud@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.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCAXBKFviSmfGtO7D4u%3DBaDt-QYNXvrA-7ygaNMkgWoWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment