<p>In Craft, assets are always &quot;absolute&quot; paths to the webroot, not relative to the URL (although you can make it like that).</p>
<p>So in your example, <code>@AssetPublicPath/images</code> is going to be replaced with <code>https://dev-craft3-f59ef5d673d0.hyperlane.co/uploads/images</code>.</p>
<p>If you want something to go into a subfolder, in this case <code>work</code>, you'd need to either specify that as another Craft Volume or specify that in the <code>featuredImage</code> <a href="https://craftcms.com/docs/3.x/assets-fields.html#settings" rel="nofollow noreferrer">asset field</a>.</p>
<p>Looks like have &quot;restrict uploads to a single folder&quot; checked but there's nothing set in that field so Craft is getting confused as to where to put things.</p>

CC BY-SA 4.0
2020-08-13T17:38:49.700Z
2020-08-13T17:38:49.700Z
RitterKnight
<p>I am having trouble setting up image volumes correctly in Hyperlane.
My best guess is that is has something to do with permissions but I have not been able to find a solution.</p>
<p>This is how I have set up the image volume like instructed in <a href="https://docs.hyperlane.co/craft3/asset-sources/" rel="nofollow noreferrer">Hyperlane's documentation</a>
<a href="https://i.sstatic.net/X0T6Z.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/X0T6Z.png" alt="enter image description here" /></a></p>
<p>However when I am uploading images it doesn't show in the templates, and when opening the url path I get a 404.
You can see a page where I have uploaded an image here <a href="https://dev-craft3-f59ef5d673d0.hyperlane.co/work/nausea" rel="nofollow noreferrer">https://dev-craft3-f59ef5d673d0.hyperlane.co/work/nausea</a> and when I right-click and open the image in a new tab I get a 404 <a href="https://dev-craft3-f59ef5d673d0.hyperlane.co/uploads/images/work/nausea.jpg" rel="nofollow noreferrer">https://dev-craft3-f59ef5d673d0.hyperlane.co/uploads/images/work/nausea.jpg</a></p>
<p>The template to get the image looks like this</p>
<pre><code>  {% set image = entry.featuredImage.one() %}
  {% if image %}
  &lt;div class=&quot;image-box&quot;&gt;
    &lt;figure&gt;
      &lt;img
      src=&quot;{{ image.getUrl() }}&quot;
      alt=&quot;{{ entry.title }}&quot;&gt;
    &lt;/figure&gt;
  &lt;/div&gt;
  {% endif %}
</code></pre>
<p>…and the field is set up like this
<a href="https://i.sstatic.net/N1bY1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/N1bY1.png" alt="enter image description here" /></a></p>

<templating><image><volumes>
Asset file permissions issue hyperlane
# Asset file permissions issue hyperlane

(Asked by: username_0 on 2020-08-13)

I am having trouble setting up image volumes correctly in Hyperlane.
My best guess is that is has something to do with permissions but I have not been able to find a solution.
This is how I have set up the image volume like instructed in Hyperlane's documentation

However when I am uploading images it doesn't show in the templates, and when opening the url path I get a 404.
You can see a page where I have uploaded an image here https://dev-craft3-f59ef5d673d0.hyperlane.co/work/nausea and when I right-click and open the image in a new tab I get a 404 https://dev-craft3-f59ef5d673d0.hyperlane.co/uploads/images/work/nausea.jpg
The template to get the image looks like this
  {% set image = entry.featuredImage.one() %}
  {% if image %}
  
    
      
    
  
  {% endif %}

…and the field is set up like this

**Tags:** templating, image, volumes


---

## 1 answers

### Answer by username_1 on 2020-08-13. Score: 1

In Craft, assets are always "absolute" paths to the webroot, not relative to the URL (although you can make it like that).

So in your example, `@AssetPublicPath/images` is going to be replaced with `https://dev-craft3-f59ef5d673d0.hyperlane.co/uploads/images`.

If you want something to go into a subfolder, in this case `work`, you'd need to either specify that as another Craft Volume or specify that in the `featuredImage` [asset field](https://craftcms.com/docs/3.x/assets-fields.html#settings).

Looks like have "restrict uploads to a single folder" checked but there's nothing set in that field so Craft is getting confused as to where to put things.


---

