<p>@lindseydiloreto in the Craft Slack gave me the solution.</p>

<p>For some reason, the craft/app folder got messed up in the last update. </p>

<p>Re-downloading and replacing the /app folder fixed the problem</p>

CC BY-SA 3.0
2017-06-23T00:16:43.097Z
2017-06-23T00:16:43.097Z
JoelS
<p>I'm unable to upload any jpg/jpeg files to the server, it just comes up with an alert saying "upload failed". After checking the PHP error logs for Craft I found this error message is being created every time I try.</p>

<pre><code>PHP Fatal error:  Class 'lsolesen\pel\PelConvert' not found in .../craft/app/vendor/lsolesen/pel/src/PelDataWindow.php on line 96
</code></pre>

<p>Any advice on how to fix this error?</p>

<p>I've tried:</p>

<ul>
<li>Uploading different files to make sure it wasn't an issue with the one jpg</li>
<li>Uploading different file types (no errors occurred with other image file types)</li>
<li>Several local server fixes I found</li>
</ul>

<error-message><php><image>
Can't Upload JPEGs to live site (PEL error)
# Can't Upload JPEGs to live site (PEL error)

(Asked by: username_0 on 2017-06-22)

I'm unable to upload any jpg/jpeg files to the server, it just comes up with an alert saying "upload failed". After checking the PHP error logs for Craft I found this error message is being created every time I try.
PHP Fatal error:  Class 'lsolesen\pel\PelConvert' not found in .../craft/app/vendor/lsolesen/pel/src/PelDataWindow.php on line 96

Any advice on how to fix this error?
I've tried:

Uploading different files to make sure it wasn't an issue with the one jpg
Uploading different file types (no errors occurred with other image file types)
Several local server fixes I found

**Tags:** error-message, php, image


---

## 1 answers

### Answer by username_0 on 2017-06-23. Score: 2 | Accepted answer

@lindseydiloreto in the Craft Slack gave me the solution.

For some reason, the craft/app folder got messed up in the last update.

Re-downloading and replacing the /app folder fixed the problem


---

