Fileupload Success, But No Photos In The Server (phonegap Android)
when i tried the application, everything works perfectly. success log is appear.but when i check in my server, there are no photos. this is my code. script.js $('#gallery_page').li
Solution 1:
This line should be changed
move_uploaded_file($_FILES["file"]["tmp_name"], "http://*my_ip*/TA/php/".$new_image_name);
to
move_uploaded_file($_FILES["file"]["tmp_name"], "/PATH/ON/SERVER/TA/php/".$new_image_name);
The code should look something like this:
upload.php
include'db.php';
print_r($_FILES);
$new_image_name = "namethisimage.jpg";
move_uploaded_file($_FILES["file"]["tmp_name"], "/var/www/php/".$new_image_name);
Post a Comment for "Fileupload Success, But No Photos In The Server (phonegap Android)"