<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><figure class="quote"><figcaption><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="ja">孔明……いや、octet-streamの罠 | 日記の間 | あかつきのお宿</cite>
(<time>2015-06-18 17:41:46 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://norm-nois.com/blog/archives/2968">http://norm-nois.com/blog/archives/2968</anchor-external></p></figcaption><blockquote><p>どうやら何も考えずにテンポラリファイルを直接S3にアップロードすると、ファイルのContent-Typeが「binary/octet-stream」というのになってしまう。これはそのファイルがバイナリファイルですよってことを表しています。</p><p>通常、例えばmp3の音声ファイルだったらContent-Typeは「audio/mpeg」とかになります。テキストファイルだったら「text/plain」かな。でも上記のやり方だと、いずれも「binary/octet-stream」ってのになるみたいです。</p></blockquote></figure><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <cite xml:lang="en">content-type: binary/octet-stream · Issue #138 · aws/aws-sdk-php</cite>
(<time>2015-06-18 17:42:46 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/aws/aws-sdk-php/issues/138">https://github.com/aws/aws-sdk-php/issues/138</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> <cite>amazon s3 - Firefox 29: HTTP &quot;Content-Type&quot; of &quot;binary/octet-stream&quot; is not supported - Stack Overflow</cite>
(<time>2015-06-18 17:42:55 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://stackoverflow.com/questions/23797235/firefox-29-http-content-type-of-binary-octet-stream-is-not-supported">http://stackoverflow.com/questions/23797235/firefox-29-http-content-type-of-binary-octet-stream-is-not-supported</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> <cite>php - imagejpeg causing file type 'binary/octet-stream' in GCS - Stack Overflow</cite>
(<time>2015-06-18 17:43:20 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://stackoverflow.com/questions/27661234/imagejpeg-causing-file-type-binary-octet-stream-in-gcs">http://stackoverflow.com/questions/27661234/imagejpeg-causing-file-type-binary-octet-stream-in-gcs</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <cite xml:lang="ja">aws s3に画像を上げる時はcontent-typeを指定しましょうというメモ - Work Records</cite>
(<time>2015-06-18 17:44:48 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://kenjiszk.hatenablog.com/entry/2014/05/08/090733">http://kenjiszk.hatenablog.com/entry/2014/05/08/090733</anchor-external></p><figure class="quote"><figcaption><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> <cite xml:lang="en">953274 – PDF File upload : wrong mime type (js)</cite>
(<time>2015-06-18 17:45:59 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://bugzilla.mozilla.org/show_bug.cgi?id=953274">https://bugzilla.mozilla.org/show_bug.cgi?id=953274</anchor-external></p></figcaption><blockquote><p>Yes my mimeTypes.rdf contains the wrong value for .pdf files.</p><p><anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="RDF" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="Description RDF:about=&quot;urn:mimetype:binary/octet-stream&quot; NC:value=&quot;binary/octet-stream&quot; NC:editable=&quot;true&quot; NC:fileExtensions=&quot;pdf&quot; NC:description=&quot;PDF-Dokument&quot;">RDF:Description RDF:about=&quot;urn:mimetype:binary/octet-stream&quot; NC:value=&quot;binary/octet-stream&quot; NC:editable=&quot;true&quot; NC:fileExtensions=&quot;pdf&quot; NC:description=&quot;PDF-Dokument&quot;</anchor-external></p><p><anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="NC" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="handlerProp RDF:resource=&quot;urn:mimetype:handler:binary/octet-stream&quot;/">NC:handlerProp RDF:resource=&quot;urn:mimetype:handler:binary/octet-stream&quot;/</anchor-external></p><p>&lt;/RDF:Description&gt;</p></blockquote></figure><figure class="quote"><figcaption><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <cite xml:lang="en">HTTP Headers and Query String Parameters - Cloud Storage — Google Cloud Platform</cite>
(<time>2015-05-27 08:55:19 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://cloud.google.com/storage/docs/reference-headers#contenttype">https://cloud.google.com/storage/docs/reference-headers#contenttype</anchor-external></p></figcaption><blockquote><p>If you do not specify a content type when you upload an object, the Google Cloud Storage system defaults to binary/octet-stream when it serves the object.</p></blockquote></figure></body></html>