Navigation through a Laravel filebag
<p>I am using a medium editor image insert plugin, which has a dependency of bluimp image upload.</p>

<p>For the server side, I am trying to get the image before uploading it.</p>

<p>If if do:</p>

<p>dd($request->files)</p>

<p>I get this:</p>

<pre><code>FileBag {#45
#parameters: array:1 [
"files" =&gt; array:1 [
  0 =&gt; UploadedFile {#30
    -test: false
    -originalName: "2015-07-17-018.jpg"
    -mimeType: "image/jpeg"
    -size: 240817
    -error: 0
    path: "/Applications/MAMP/tmp/php"
    filename: "phpiGBKNo"
    basename: "phpiGBKNo"
    pathname: "/Applications/MAMP/tmp/php/phpiGBKNo"
    extension: ""
    realPath: "/Applications/MAMP/tmp/php/phpiGBKNo"
    aTime: 2016-05-09 14:39:11
    mTime: 2016-05-09 14:39:11
    cTime: 2016-05-09 14:39:11
    inode: 37419151
    size: 240817
    perms: 0100600
    owner: 501
    group: 80
    type: "file"
    writable: true
    readable: true
    executable: false
    file: true
    dir: false
    link: false
  }
]
]
}
</code></pre>

<p>As you can see there is an image there, but I cannot seem to get the single image no matter what I do. Tried $request->files[0] / files->UploadedFile etc and nothing I have done will return that image.</p>