<p>Have you tried enabling devMode in the craft/config/general.php file? You can do this by adding <code>'devMode' =&gt; true</code> to the array. You should then be able to see an error on submission.</p>

<p>If this fails to output anything then it could be that your input requires square brackets adding to the name, e.g. <code>name="useruploads[]"</code></p>

<p>Even though you have limited the field to 1 upload, it may still be expecting an array to be posted to it.</p>

CC BY-SA 3.0
2017-04-13T12:06:20.390Z
2017-04-13T12:06:20.390Z
Matt Shearing
<p>Doesn't look like the field name is correct - you should be using the <code>fields</code> namespace for all the actual Entry fields. For the upload, for example, you should be using <code>fields[useruploads]</code>.</p>

<p>You can find more information about Asset uploads specifically <a href="https://craftcms.com/docs/assets-fields#uploading-files-from-front-end-entry-forms" rel="nofollow noreferrer">here</a></p>

CC BY-SA 3.0
2017-04-13T12:13:08.880Z
That actually did the trick. The file now uploads to the assets. However, the files are still not added to the field referenced by `fields[useruploads]`. Is this even possible?
justussimon91
CC BY-SA 3.0
2017-04-13T12:09:47.530Z
2017-04-13T12:09:47.530Z
Andris Sevcenko
<p>I'm currently trying to implement a simple file-upload form with CraftCMS.</p>

<p>However, even though there are no errors on submitting the form, no file actually seems to get uploaded.</p>

<p>This is the form:</p>

<pre><code>&lt;form action="" method="post" accept-charset="UTF-8" enctype="multipart/form-data"&gt;
        &lt;input type="hidden" name="action" value="entries/saveEntry"/&gt;
        &lt;input type="hidden" name="sectionId" value="29"&gt;
        &lt;input type="hidden" name="enabled" value="1"&gt;

        &lt;input type="file" name="useruploads" style="margin-bottom: 30px"/&gt;

        &lt;select class="form-control" id="sel1" style="margin-bottom: 30px"&gt;
            &lt;option&gt;x-challenge auswählen&lt;/option&gt;
            {% for entry in craft.entries.section('challenges') %}
                {% for ch in entry.allOverChallenge %} %}
                    &lt;option&gt;( Tirol ) {{ch.allOverName}}&lt;/option&gt;
                {% endfor %}
            {% endfor %}

            {% for entry in craft.entries.section('xSpots') %}
                {% for ch in entry.standaloneChallenges %} %}
                &lt;option&gt;( {{entry.title}} ) {{ch.standaloneName}}&lt;/option&gt;
                {% endfor %}
            {% endfor %}
        &lt;/select&gt;

        &lt;input type="text" class="form-control" id="challenge_select" placeholder="Titel eingeben" style="margin-bottom: 30px"&gt;

        &lt;textarea class="form-control" rows="5" id="challenge_description" placeholder="Beschreibung eingeben" style="margin-bottom: 30px"&gt;&lt;/textarea&gt;

        &lt;input type="text" class="form-control" id="challenge_customtags" placeholder="Hashtags ( max. 3 )" style="margin-bottom: 30px"&gt;
        &lt;div style="margin-bottom: 30px"&gt;
            &lt;input type="reset" value="abbrechen"&gt;
            &lt;input type="submit" value="hochladen"&gt;
        &lt;/div&gt;
    &lt;/form&gt;
</code></pre>

<p><br/><br/></p>

<p>I'm attaching two screenshots that show both the actual field and the section:
<br/><br/>
<a href="https://i.sstatic.net/awKln.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/awKln.jpg" alt="enter image description here"></a>
<a href="https://i.sstatic.net/YMpZz.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YMpZz.jpg" alt="enter image description here"></a>
<br/><br/>
When submitting the form in it's current state, no entries actually get added to the field as shown in the image below. Am I doing something wrong here? I'd appreciate some help on the topic.</p>

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

<frontend><upload>
Issue with uploading files from frontend
# Issue with uploading files from frontend

(Asked by: username_0 on 2017-04-13)

I'm currently trying to implement a simple file-upload form with CraftCMS.
However, even though there are no errors on submitting the form, no file actually seems to get uploaded.
This is the form:

        
        
        

        

        
            x-challenge auswählen
            {% for entry in craft.entries.section('challenges') %}
                {% for ch in entry.allOverChallenge %} %}
                    ( Tirol ) {{ch.allOverName}}
                {% endfor %}
            {% endfor %}

            {% for entry in craft.entries.section('xSpots') %}
                {% for ch in entry.standaloneChallenges %} %}
                ( {{entry.title}} ) {{ch.standaloneName}}
                {% endfor %}
            {% endfor %}
        

        

        

        
        
            
            
        
    


I'm attaching two screenshots that show both the actual field and the section:




When submitting the form in it's current state, no entries actually get added to the field as shown in the image below. Am I doing something wrong here? I'd appreciate some help on the topic.

**Tags:** frontend, upload

---

## 2 answers

### Answer by username_1 on 2017-04-13. Score: 2

Have you tried enabling devMode in the craft/config/general.php file? You can do this by adding `'devMode' => true` to the array. You should then be able to see an error on submission.

If this fails to output anything then it could be that your input requires square brackets adding to the name, e.g. `name="useruploads[]"`

Even though you have limited the field to 1 upload, it may still be expecting an array to be posted to it.


---

### Answer by username_2 on 2017-04-13. Score: 2

Doesn't look like the field name is correct - you should be using the `fields` namespace for all the actual Entry fields. For the upload, for example, you should be using `fields[useruploads]`.

You can find more information about Asset uploads specifically [here](https://craftcms.com/docs/assets-fields#uploading-files-from-front-end-entry-forms)

> **Comments:**
> **username_0**: That actually did the trick. The file now uploads to the assets. However, the files are still not added to the field referenced by `fields[useruploads]`. Is this even possible?  

---

