Answers.Body: <p>You could try to use Craft and/or freeform hooks <a href="https://solspace.com/craft/freeform/docs/events-and-hooks/#events-freeform-forms" rel="nofollow noreferrer">https://solspace.com/craft/freeform/docs/events-and-hooks/#events-freeform-forms</a> and fetch the assets related to the entry during the <code>beforeSave</code>process, add field values of the submission to it and save it again. There are examples how to do this in Crafts documentation </p>
  
  <p>Or the most flexible (and for me easiest) thing: create a custom controller that extends the freeform controller and add a few lines to attach those information to the asset. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-10T21:52:10.570Z
Answers.Text: Thanks @RobinSchambach . Not my strong point so might have to get some assistance.
Answers.UserDisplayName: Terry Upton
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-11T09:59:55.470Z
Answers.Text: I never buyed freeform and I'm not going to do that. Unless you provide me access to your project I can't write the code because I don't it's exact structure. You have an examples how to use hooks here https://craftcms.stackexchange.com/a/2934/5557. Here is the craft doc for how to use events https://craftcms.com/docs/plugins/hooks-and-events#events Your code should look similar to those examples.
Answers.UserDisplayName: Robin Schambach
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-07T06:30:38.090Z
Answers.LastActivityDate: 2017-12-07T06:38:35.820Z
Answers.LastEditDate: 2017-12-07T06:38:35.820Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I currently have a form that has an upload file fieldtype and this currently stores the file in an asset source in Craft. What I would like to do is attach some of the form submitted field data alongside the asset using fields within the Asset field layout.</p>
  
  <p>Ideally I would like to store the Form Submission ID, Name and Email address.</p>
  
  <p>Any ideas as to how I would go about doing this?</p>
  
  <p>Thanks, </p>
  
Tags: <assets><plugin-freeform>
Title: Store form data with file upload in an asset source using Freeform
ThreadText: # Store form data with file upload in an asset source using Freeform
  
  (Asked by: username_0 on 2017-12-05)
  
  I currently have a form that has an upload file fieldtype and this currently stores the file in an asset source in Craft. What I would like to do is attach some of the form submitted field data alongside the asset using fields within the Asset field layout.
  
  Ideally I would like to store the Form Submission ID, Name and Email address.
  
  Any ideas as to how I would go about doing this?
  
  Thanks,
  
  **Tags:** assets, plugin-freeform
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-12-07. Score: 1
  
  You could try to use Craft and/or freeform hooks <https://solspace.com/craft/freeform/docs/events-and-hooks/#events-freeform-forms> and fetch the assets related to the entry during the `beforeSave`process, add field values of the submission to it and save it again. There are examples how to do this in Crafts documentation
  
  Or the most flexible (and for me easiest) thing: create a custom controller that extends the freeform controller and add a few lines to attach those information to the asset.
  
  > **Comments:**
  > **username_0**: Thanks @username_1 . Not my strong point so might have to get some assistance.  
  > **username_1**: I never buyed freeform and I'm not going to do that. Unless you provide me access to your project I can't write the code because I don't it's exact structure. You have an examples how to use hooks here https://craftcms.stackexchange.com/a/2934/5557. Here is the craft doc for how to use events https://craftcms.com/docs/plugins/hooks-and-events#events Your code should look similar to those examples.  
  
  ---
  
  