Arrgh, I've read a few tutorials, read a few articles - and in the end it seems that no one really knows the 'right' way to upload images, or a way that works universally. I'm using this code:
$tloc and $floc are correct, when I echo them out I get something to the effect of "/var/www/html/images/products/t/my_unique_id_here.jpg" which is what it seems to me is right. However, nothing is happening. No error. No file upload. HOw do I even begin to figure out what when wrong? Do I need to set some PHP settings somewhere? My server's running Ensim if that makes a difference (sometimes does).
$uploadlocation = ABSPATH . "images/products/";
$tloc = $uploadlocation . "t/" . $_POST['id'] . ".jpg";
$floc = $uploadlocation . "f/" . $_POST['id'] . ".jpg";
Any help appreciated