<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>

CC BY-SA 3.0
2015-01-14T16:13:59.297Z
Were you nearby, I would hug you in a manly fashion. 'Cause your smart.
Jacob Russell
CC BY-SA 3.0
2015-01-14T15:42:53.597Z
2015-01-14T15:42:53.597Z
Brandon Kelly
<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>

CC BY-SA 3.0
2015-01-07T16:28:02.220Z
Just to clarify: are you moving an already uploaded file (has an asset id) to another folder?
Fred Carlsen
CC BY-SA 3.0
2015-01-07T17:29:47.763Z
Yes, that's exactly what I'm trying to do.
Jacob Russell
CC BY-SA 3.0
2015-01-08T12:46:39.610Z
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.
Fred Carlsen
CC BY-SA 3.0
2015-01-14T14:31:25.407Z
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?
Brandon Kelly
CC BY-SA 3.0
2015-01-14T14:40:28.187Z
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.
Jacob Russell
<assets>
Upload file into Assets using URL?
# 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:

    {% for image in craft.assets.source('images') %}
        
            
                
                {% do image.setTransform({ width: 100, height: 100 }) -%}
                
            
        
    {% endfor %}

> **Comments:**
> **username_0**: Were you nearby, I would hug you in a manly fashion. 'Cause your smart.  

---

