Answers.Body: <p>Check the settings for the filesystem in project.yaml.</p>
  <p>I had an issue like this, where I could not upload images and image transforms were failing. I found that my images volume settings, in project.yaml had <code>expires: ' seconds'</code>, which seemed odd.</p>
  <p>I changed that to <code>expires: ''</code>, ran <code>php craft up</code> and my images volume then behaved as expected.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-01T10:02:48.497Z
Answers.LastActivityDate: 2024-05-01T10:02:48.497Z
Answers.UserDisplayName: Seth Warburton
Body: <p>I've setup S3 for Craft plugin, setup the file system, put in the credentials. Fetched the bucket using the Control Panel (Refresh) option. <em>(So it must have permissions to read)</em> though when trying to upload an asset I get the error <strong>Unable to write stream to asset_name.png</strong></p>
  <p>I've done the following:</p>
  <ul>
  <li>Created an IAM User with S3 Full Priv.</li>
  <li>Created a bucket, nothing more.</li>
  <li>Added IAM User credentials into the S3 File system settings.</li>
  </ul>
  <p>Any help would be great.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-04-29T11:57:20.380Z
Comments.Text: I'm having the same issue :(
Comments.UserDisplayName: Seth Warburton
Tags: <s3><craft5>
Title: CraftCMS S3 Plugin "Unable to write stream to..."
ThreadText: # CraftCMS S3 Plugin "Unable to write stream to..."
  
  (Asked by: username_0 on 2024-04-19)
  
  I've setup S3 for Craft plugin, setup the file system, put in the credentials. Fetched the bucket using the Control Panel (Refresh) option. *(So it must have permissions to read)* though when trying to upload an asset I get the error **Unable to write stream to asset\_name.png**
  
  I've done the following:
  
  * Created an IAM User with S3 Full Priv.
  * Created a bucket, nothing more.
  * Added IAM User credentials into the S3 File system settings.
  
  Any help would be great.
  
  **Tags:** s3, craft5
  
  > **Comments:**
  > **username_1**: I'm having the same issue :(  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-05-01. Score: 1
  
  Check the settings for the filesystem in project.yaml.
  
  I had an issue like this, where I could not upload images and image transforms were failing. I found that my images volume settings, in project.yaml had `expires: ' seconds'`, which seemed odd.
  
  I changed that to `expires: ''`, ran `php craft up` and my images volume then behaved as expected.
  
  
  ---
  
  