<p>Does this only happen with this one particular image? If so, try renaming the image file to golden-pothos-2.jpg or something and then uploading again.</p>

CC BY-SA 4.0
2019-02-09T14:36:14.923Z
2019-02-09T14:36:14.923Z
Jon Weedin
<p>Do as Jon mentioned. This was a bug that will be fixed in the next release <a href="https://github.com/craftcms/cms/issues/3773" rel="nofollow noreferrer">https://github.com/craftcms/cms/issues/3773</a></p>

CC BY-SA 4.0
2019-02-09T16:02:28.730Z
2019-02-09T16:02:28.730Z
Warmbeat
<p>I'm getting this strange error when I'm trying to upload an .jpg in the assets. </p>

<p>Env: Localhost<br>
Craft version 3.1.8  </p>

<p>MAMP:<br>
- PHP(7.2.7)<br>
- MySQL: 5.7.21</p>

<p>Upload failed. The error message was: "SQLSTATE[23000]: Integrity constant violation:</p>

<p><a href="https://i.sstatic.net/SobPU.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/SobPU.png" alt="enter image description here"></a></p>

<craft3><error-message><mysql>
Upload failed. The error message was: "SQLSTATE[23000]: Integrity constant violation:
# Upload failed. The error message was: "SQLSTATE[23000]: Integrity constant violation:

(Asked by: username_0 on 2019-02-09)

I'm getting this strange error when I'm trying to upload an .jpg in the assets.

Env: Localhost  
Craft version 3.1.8

MAMP:  
- PHP(7.2.7)  
- MySQL: 5.7.21

Upload failed. The error message was: "SQLSTATE[23000]: Integrity constant violation:

[![enter image description here](https://i.sstatic.net/SobPU.png)](https://i.sstatic.net/SobPU.png)

**Tags:** craft3, error-message, mysql

---

## 2 answers

### Answer by username_1 on 2019-02-09. Score: 1

Does this only happen with this one particular image? If so, try renaming the image file to golden-pothos-2.jpg or something and then uploading again.


---

### Answer by username_2 on 2019-02-09. Score: 1

Do as Jon mentioned. This was a bug that will be fixed in the next release <https://github.com/craftcms/cms/issues/3773>


---

