Answers.Body: <p>It’s not currently possible to upload assets via URL, but if we’re only talking about images that are already uploaded into Craft, you could have them selected by their existing asset IDs, rather than URLs, and it would work.</p>
  
  <p>First, go into your Assets field settings and check the “Restrict uploads to a single folder” checkbox.</p>
  
  <p>Then in your entry form, write a UI for selecting an existing asset. Something like this:</p>
  
  <pre class="lang-twig prettyprint-override"><code>&lt;ul class="asset-selector"&gt;
      {% for image in craft.assets.source('images') %}
          &lt;li&gt;
              &lt;label&gt;
                  &lt;input type="radio" name="fields[myAssetsField][]" value="{{ image.id }}"&gt;
                  {% do image.setTransform({ width: 100, height: 100 }) -%}
                  &lt;img src="{{ image.url }}" width="100" height="100" alt="{{ image.title }}"&gt;
              &lt;/label&gt;
          &lt;/li&gt;
      {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-14T16:13:59.297Z
Answers.Text: Were you nearby, I would hug you in a manly fashion. 'Cause your smart.
Answers.UserDisplayName: Jacob Russell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-14T15:42:53.597Z
Answers.LastActivityDate: 2015-01-14T15:42:53.597Z
Answers.UserDisplayName: Brandon Kelly
Body: <p>Is it possible in a front end entry form to pass the URL of a file to an assets field and have it upload that way?  Specifically, I'm trying to move an image from one assets field &amp; upload folder to another in an edit entry form.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-01-07T16:28:02.220Z
Comments.Text: Just to clarify: are you moving an already uploaded file (has an asset id) to another folder?
Comments.UserDisplayName: Fred Carlsen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-01-07T17:29:47.763Z
Comments.Text: Yes, that's exactly what I'm trying to do.
Comments.UserDisplayName: Jacob Russell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-01-08T12:46:39.610Z
Comments.Text: Is there two Assets fields, each specified to upload to different folders? If so, you can just remove the asset id from one field and add it to the other. Also have a look at the actionMoveFile in AssetsController. You might need to make a simple plugin.
Comments.UserDisplayName: Fred Carlsen
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-01-14T14:31:25.407Z
Comments.Text: Do you want to _move_ the file (so the file no longer exists in the original location), or do you want it to be _copied_ to the new location?
Comments.UserDisplayName: Brandon Kelly
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-01-14T14:40:28.187Z
Comments.Text: Either option would be fine with me.  What's important is that the assets field in the new channel point to the file, whether the field in the original channel still points to it doesn't matter that much.
Comments.UserDisplayName: Jacob Russell
Tags: <assets>
Title: Upload file into Assets using URL?
ThreadText: # Upload file into Assets using URL?
  
  (Asked by: username_0 on 2015-01-06)
  
  Is it possible in a front end entry form to pass the URL of a file to an assets field and have it upload that way? Specifically, I'm trying to move an image from one assets field & upload folder to another in an edit entry form.
  
  **Tags:** assets
  
  > **Comments:**
  > **username_1**: Just to clarify: are you moving an already uploaded file (has an asset id) to another folder?  
  > **username_0**: Yes, that's exactly what I'm trying to do.  
  > **username_1**: Is there two Assets fields, each specified to upload to different folders? If so, you can just remove the asset id from one field and add it to the other. Also have a look at the actionMoveFile in AssetsController. You might need to make a simple plugin.  
  > **username_2**: Do you want to _move_ the file (so the file no longer exists in the original location), or do you want it to be _copied_ to the new location?  
  > **username_0**: Either option would be fine with me.  What's important is that the assets field in the new channel point to the file, whether the field in the original channel still points to it doesn't matter that much.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-01-14. Score: 2 | Accepted answer
  
  It’s not currently possible to upload assets via URL, but if we’re only talking about images that are already uploaded into Craft, you could have them selected by their existing asset IDs, rather than URLs, and it would work.
  
  First, go into your Assets field settings and check the “Restrict uploads to a single folder” checkbox.
  
  Then in your entry form, write a UI for selecting an existing asset. Something like this:
  
  ```twig
  <ul class="asset-selector">
      {% for image in craft.assets.source('images') %}
          <li>
              <label>
                  <input type="radio" name="fields[myAssetsField][]" value="{{ image.id }}">
                  {% do image.setTransform({ width: 100, height: 100 }) -%}
                  <img src="{{ image.url }}" width="100" height="100" alt="{{ image.title }}">
              </label>
          </li>
      {% endfor %}
  </ul>
  
  ```
  
  > **Comments:**
  > **username_0**: Were you nearby, I would hug you in a manly fashion. 'Cause your smart.  
  
  ---
  
  