The file fieldtype and subdirectories


When using the file fieldtype to upload files, the path that is saved is the path from the web server root, as opposed to the Statamic _site_root. I've tried working around this by manually setting the path to "{{ _site_root }}assets/etc" in my entries, which works, but of course this value gets overriden the next time someone updates an entry.

Is there any way of getting Statamic to preserve the _site_root-relative path? Otherwise I guess we would need to mandate what we name our subdirectories on dev boxes and on the live site in order for the links to remain consistent across servers.

Thanks in advance,


Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
2 Replies