Kouhei Sutou
null+****@clear*****
Tue Jul 11 23:59:29 JST 2017
Kouhei Sutou 2017-07-11 23:59:29 +0900 (Tue, 11 Jul 2017) New Revision: d1f324ee09aa64827b76dec1854c183548ca1e31 https://github.com/ranguba/chupa-text-http-server/commit/d1f324ee09aa64827b76dec1854c183548ca1e31 Message: Use MIME type specified by uploaded file Modified files: app/models/extraction.rb Modified: app/models/extraction.rb (+1 -0) =================================================================== --- app/models/extraction.rb 2017-07-11 11:06:40 +0900 (e3c3ab9) +++ app/models/extraction.rb 2017-07-11 23:59:29 +0900 (e8a6e7d) @@ -30,6 +30,7 @@ class Extraction data_uri = Pathname(@data.original_filename) end data = ChupaText::VirtualFileData.new(data_uri, @data.to_io) + data.mime_type =****@data*****_type if****@data*****_type else begin data = ChupaText::InputData.new(@uri) -------------- next part -------------- HTML����������������������������... Descargar