now the gem searches the content type for uploaded files and use "application/octet-stream" only as failback, that allows proxying of uploaded files to other Rails-style APIs without causing the malfunction of such famous gems as Paperclip.