Get and use uploads_path in a template
Posted: Wed Nov 26, 2025 4:22 pm
Is it possible to get and use the uploads_path (/var/www/domain.com/uploads) in a template or do i need to hard code it?
I'm trying to use getimagesize($item->image) in a template but I can't use {uploads_url} as i get no output. If i hardcode the uploads_path instead i get a result for getimagesize.
I'm trying to use getimagesize($item->image) in a template but I can't use {uploads_url} as i get no output. If i hardcode the uploads_path instead i get a result for getimagesize.