Answers.Body: <p>I was adding {slug} in the upload location. This worked for the final file but seems to trigger the behaviour where it links to the temp file.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-29T10:44:49.323Z
Answers.LastActivityDate: 2017-08-29T10:44:49.323Z
Answers.UserDisplayName: Graham Bennett
Body: <p>I'm trying to add a link to a front-end upload in an email notification.  The docs say "To send notifications that include a direct link to your file, you can enable Template Overrides". I've done that, but all I can get is a link to a temporary file in cpresources/tempassets which doesn't exist any more.</p>
  
  <p>I can't see how the code in the docs could be used in the email.html override file.</p>
  
  <p>This is from the docs: (<a href="https://sprout.barrelstrengthdesign.com/craft-plugins/forms/docs/examples/front-end-file-uploads" rel="nofollow noreferrer">https://sprout.barrelstrengthdesign.com/craft-plugins/forms/docs/examples/front-end-file-uploads</a>)</p>
  
  <pre><code>{% set resume = object.resumeAssetFieldHandle.first() %}
  Resume: {{ resume.getUrl() }}
  </code></pre>
  
  <p>But that doesn't work for me. Presumably resumeAssetFieldHandle is just an example field name but I don't know what the object is.</p>
  
  <p>I have (after line 44)</p>
  
  <pre><code>{% if field.handle == 'uploadFile' %}
  {{ value[0].getUrl() }}
  {% endif %}
  </code></pre>
  
  <p>Which gives me the temp link.</p>
  
  <p>Any pointers to how I can get the permanent link?</p>
  
  <p>Thanks!</p>
  
Tags: <plugin-sproutforms>
Title: Link to a front-end upload in email notification using the Sprout Forms plugin
ThreadText: # Link to a front-end upload in email notification using the Sprout Forms plugin
  
  (Asked by: username_0 on 2017-08-11)
  
  I'm trying to add a link to a front-end upload in an email notification. The docs say "To send notifications that include a direct link to your file, you can enable Template Overrides". I've done that, but all I can get is a link to a temporary file in cpresources/tempassets which doesn't exist any more.
  
  I can't see how the code in the docs could be used in the email.html override file.
  
  This is from the docs: (<https://sprout.barrelstrengthdesign.com/craft-plugins/forms/docs/examples/front-end-file-uploads>)
  
  ```
  {% set resume = object.resumeAssetFieldHandle.first() %}
  Resume: {{ resume.getUrl() }}
  
  ```
  
  But that doesn't work for me. Presumably resumeAssetFieldHandle is just an example field name but I don't know what the object is.
  
  I have (after line 44)
  
  ```
  {% if field.handle == 'uploadFile' %}
  {{ value[0].getUrl() }}
  {% endif %}
  
  ```
  
  Which gives me the temp link.
  
  Any pointers to how I can get the permanent link?
  
  Thanks!
  
  **Tags:** plugin-sproutforms
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-08-29. Score: 1
  
  I was adding {slug} in the upload location. This worked for the final file but seems to trigger the behaviour where it links to the temp file.
  
  
  ---
  
  