Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-09T14:36:14.923Z
Answers.LastActivityDate: 2019-02-09T14:36:14.923Z
Answers.UserDisplayName: Jon Weedin
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-09T16:02:28.730Z
Answers.LastActivityDate: 2019-02-09T16:02:28.730Z
Answers.UserDisplayName: Warmbeat
Body: <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>
  
Tags: <craft3><error-message><mysql>
Title: Upload failed. The error message was: "SQLSTATE[23000]: Integrity constant violation:
ThreadText: # 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>
  
  
  ---
  
  