<p>Sorry, but the answer is no; assets will initially just get titles based on their filenames until someone goes into the Control Panel and customizes them.</p>

CC BY-SA 3.0
2015-10-16T07:16:20.247Z
So a workaround solution would be to add a custom text field to the asset source and use that instead of title?
carlcs
CC BY-SA 3.0
2015-10-16T13:34:37.750Z
@carlcs Not sure what you mean, but there aren’t any workarounds (besides writing a plugin that hooks into asset saving).
Brandon Kelly
CC BY-SA 3.0
2015-10-16T17:12:54.483Z
I thought it is only a problem with the asset's title and other asset fields, like a custom plain text field "myTitle" would be possible. But I'm probably wrong.
carlcs
CC BY-SA 3.0
2015-10-16T07:02:52.637Z
2015-10-16T07:02:52.637Z
Brandon Kelly
<p>I have a frontend form to save an entry which includes a file upload input field:</p>

<pre><code>&lt;input type="file" name="fields[newsFile]"&gt;
</code></pre>

<p>The upload works fine, but is it also possible to set the title of the asset similar to the backend? Unfortunately, this doesn't work:</p>

<pre><code>&lt;input type="text" name="fields[newsFile][title]" value="Asset Name"&gt;
</code></pre>

CC BY-SA 3.0
2015-10-13T16:56:06.933Z
Can you share some of the backend code you have to save the entry?
Aaron Berkowitz
CC BY-SA 3.0
2015-10-14T07:27:27.423Z
I basically just used the [entry form](http://buildwithcraft.com/docs/templating/entry-form) from Craft with the input action "entries/saveEntry" and the [input file field](http://buildwithcraft.com/docs/assets-fields#uploading-files-from-front-end-entry-forms)
fingerfood
<assets><form><frontend>
Saving asset title in frontend form
# Saving asset title in frontend form

(Asked by: username_0 on 2015-10-13)

I have a frontend form to save an entry which includes a file upload input field:


The upload works fine, but is it also possible to set the title of the asset similar to the backend? Unfortunately, this doesn't work:

**Tags:** assets, form, frontend

> **Comments:**
> **username_1**: Can you share some of the backend code you have to save the entry?  
> **username_0**: I basically just used the [entry form](http://buildwithcraft.com/docs/templating/entry-form) from Craft with the input action "entries/saveEntry" and the [input file field](http://buildwithcraft.com/docs/assets-fields#uploading-files-from-front-end-entry-forms)  

---

## 1 answers

### Answer by username_2 on 2015-10-16. Score: 1

Sorry, but the answer is no; assets will initially just get titles based on their filenames until someone goes into the Control Panel and customizes them.

> **Comments:**
> **username_3**: So a workaround solution would be to add a custom text field to the asset source and use that instead of title?  
> **username_2**: @username_3 Not sure what you mean, but there aren’t any workarounds (besides writing a plugin that hooks into asset saving).  
> **username_3**: I thought it is only a problem with the asset's title and other asset fields, like a custom plain text field "myTitle" would be possible. But I'm probably wrong.  

---

