Image file upload error: Unable to read image from file () - Laravel 5
<p>Having issues with the intervention Image package for laravel.</p>

<p>I have a simple form which accepts an image, I then take that image and fit it, and move save it to a new location. I then persist the file path into the database.</p>

<p>on my local machine I run xampp with php7 and everything runs fine.</p>

<p>However, when I upload my changes to my remote host, I get this error when submitting the form:</p>

<pre><code>NotReadableException in Decoder.php line 21:
Unable to read image from file ().
</code></pre>

<p>Here is the code which I use:</p>

<pre><code>$file = $request-&gt;file('profile-picture');

$destinationPath = 'uploads/';

$filename = md5(microtime() . $file-&gt;getClientOriginalName()) . "." . $file-&gt;getClientOriginalExtension();

$path = $destinationPath.$filename;

Image::make($file)-&gt;fit(300)-&gt;save($path);  
</code></pre>

<p>My remote host is running windows server 2012 with IIS 8.</p>

<p>As I say, this runs perfectly on my local machine with xampp, which leads me to believe that there is some sort of permission issue on my remote host.</p>

<p>I've checked the folder permissions on the '/uploads' folder, and they seem fine as far as I am aware. Could there be an issue with permissions on the temp folder the image first gets uploaded to?</p>