Upload file from mobile phone sends application/octet-stream
<p>I have a simple form with video file upload. It works on regular PC, but when uploading from a mobile device (Android), it sends the file mime type as <code>application/octet-stream</code> with file <code>null</code> and error 1.</p>

<p>I don't know what to do. Can anyone help?</p>

<p>here is the form</p>

<pre><code>&lt;input type="file" id="video_link" name="video[link]" class="form-control" accept="video/*"&gt;
</code></pre>

<p>here is var_dump of video submitted on mobile</p>

<pre><code>UploadedFile {#9 ▼
  -test: false
  -originalName: "VID-20160712-WA0029.mp4"
  -mimeType: "application/octet-stream"
  -size: 0
  -error: 1
  path: ""
  filename: ""
  basename: ""
  pathname: ""
  extension: ""
  realPath1970: "/app/web"
  aTime: 1970-01-01 00:00:00
  mTime: 1970-01-01 00:00:00
  cTime: -01-01 00:00:00
  inode: false
  size: false
  perms: 00
  owner: false
  group: false
  type: false
  writable: false
  readable: false
  executable: false
  file: false
  dir: false
  link: false
}
</code></pre>

<p>here is uploaded file dump from regular pc browser</p>

<pre><code>VideoController.php on line 59:
UploadedFile {#14 ▼
  -test: false
  -originalName: "videoplayback.mp4"
  -mimeType: "video/mp4"
  -size: 684535
  -error: 0
  path: "C:\wamp\tmp"
  filename: "phpC612.tmp"
  basename: "phpC612.tmp"
  pathname: "C:\wamp\tmp\phpC612.tmp"
  extension: "tmp"
  realPath: "C:\wamp\tmp\phpC612.tmp"
  aTime: 2016-07-14 05:43:25
  mTime: 2016-07-14 05:43:25
  cTime: 2016-07-14 05:43:25
  inode: 0
  size: 684535
  perms: 0100666
  owner: 0
  group: 0
  type: "file"
  writable: true
  readable: true
  executable: false
  file: true
  dir: false
  link: false
        linkTarget:"C:\wamp\tmp\phpC612.tmp"}
</code></pre>