en el codigo de los if y else aparecen todo el texto sin haber procesado a que se debe y eso que lo cambie de este modo.
[
Código PHP:
<?
////////// ORIGINAL ////////////
// Check if file already exists
if (file_exists($target_file)) {
echo "Sorry, file already exists.";
$uploadOk = 0;
}
////////////////////////////////
// MODIFICADO
// Check if file already exists
if (file_exists($target_file)) {
echo "Sorry, file already exists.";
$uploadOk = 1;
} else {
echo "Sorry, file not exists..";
$uploadOk = 0;
}
// Check file size
if ($_FILES["fileToUpload"]["size"] > 500000) {
echo "Sorry, your file is too large.";
$uploadOk = 1;
} else {
echo "Sorry, your file is too small.";
$uploadOk = 0;
}
?>