<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rasukarusan</author_name>
  <author_url>https://blog.hatena.ne.jp/rasukarusan/</author_url>
  <blog_title>ハイパーマッスルエンジニア</blog_title>
  <blog_url>https://www.rasukarusan.com/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>PHP</anon>
  </categories>
  <description>iOSのインカメラでキャプチャを撮ってサーバー側に保存する、といった処理をしようとした際、どうもサーバー側で画像が受け取れない。 なぜか画像が$_FILEではなく$_POSTに入ってきてしまい、かつバイナリ文字列のような形で来てしまう。 結論としてはAlamofireでuploadする際、filenameを指定していなかったからだった。laravelは関係ない。 ちなみに以下に調査内容を書いていくが、結局根本的な原因は判明していない。 環境 Swift 4.0 PHP 7.0.9 Laravel 5.5.44 Alamofire 4.7.3 クライアント(Alamofire)側 巷でよく見る以…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.rasukarusan.com%2Fentry%2F2019%2F02%2F02%2F192946&quot; title=&quot;Laravel+Alamofireで画像のアップロードがうまくいかない件 - ハイパーマッスルエンジニア&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/r/rasukarusan/20190202/20190202192844.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-02 19:29:46</published>
  <title>Laravel+Alamofireで画像のアップロードがうまくいかない件</title>
  <type>rich</type>
  <url>https://www.rasukarusan.com/entry/2019/02/02/192946</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
