This is my code:
$file_return = wp_handle_upload($_FILES['my-photo'], array('test_form' => FALSE));
if(isset($file_return['error']) || isset($file_return['upload_error_handler'])) {
echo "And so it DIED...";
print_r($file_return);
die;
}
Why is not uploading to the uploads dir and why is it throwing a "Specified file failed upload test."?