[eluser]thisischris[/eluser]
Hey guys.
I'm trying to create an upload controller that'll accept two files and some text inputs.
However if one upload fails, I need to delete the first upload. However I'm not sure how I can call the 'base' url of the CG installation to keep it modular.
Code:
unlink('/main_site/uploads/example.txt')
In case I move main_site or rename it.
Thank you!