Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-16T07:16:20.247Z
Answers.Text: So a workaround solution would be to add a custom text field to the asset source and use that instead of title?
Answers.UserDisplayName: carlcs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-16T13:34:37.750Z
Answers.Text: @carlcs Not sure what you mean, but there aren’t any workarounds (besides writing a plugin that hooks into asset saving).
Answers.UserDisplayName: Brandon Kelly
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-16T17:12:54.483Z
Answers.Text: 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.
Answers.UserDisplayName: carlcs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-16T07:02:52.637Z
Answers.LastActivityDate: 2015-10-16T07:02:52.637Z
Answers.UserDisplayName: Brandon Kelly
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-13T16:56:06.933Z
Comments.Text: Can you share some of the backend code you have to save the entry?
Comments.UserDisplayName: Aaron Berkowitz
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-14T07:27:27.423Z
Comments.Text: 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)
Comments.UserDisplayName: fingerfood
Tags: <assets><form><frontend>
Title: Saving asset title in frontend form
ThreadText: # 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:
  
  ```
  <input type="file" name="fields[newsFile]">
  
  ```
  
  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:
  
  ```
  <input type="text" name="fields[newsFile][title]" value="Asset Name">
  
  ```
  
  **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.  
  
  ---
  
  