Fixed upload error on detail.php