# 'Upload Fails' error when using form templates

**URL:** <https://meta.discourse.org/t/upload-fails-error-when-using-form-templates/283110>\
**Category:** Bug\
**Tags:** form-templates\
**Created:** [October 19, 2023, 10:56pm UTC](https://meta.discourse.org/t/upload-fails-error-when-using-form-templates/283110 "2023-10-19T22:56:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gormus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gormus/32/428592_2.png) [@gormus](https://meta.discourse.org/u/gormus)\
**Post date:** [October 19, 2023, 10:56pm UTC](https://meta.discourse.org/t/upload-fails-error-when-using-form-templates/283110/1 "2023-10-19T22:56:20Z")

</div>

This is my new favorite feature, thank you! 😃 I’ll be testing out and will report any issues I may come up with; here is the first one:

I’m trying a simple form with an upload field, but the uploads field just errors:

> Sorry, there was an error uploading my-image-1.jpg. Please try again.

My upload field:

```yaml
- type: upload
  id: screenshots
  attributes:
    file_types: ".jpg, .png, .gif"
    allow_multiple: true
    label: "Screenshots"
    description: "If applicable, add screenshots to help explain your issue."

```

1. I fill out the form for all required fields, including the composer Title field.
2. Click on the “Upload” button, select a valid image file.
3. Upload fails, and modal shows up to display the error.

I also checked the settings; the `jpg` file extension is in the authorized extensions list.

---

_[View the full topic](https://meta.discourse.org/t/upload-fails-error-when-using-form-templates/283110)._
