Php file upload strange behaviour, occasionally upload is empty -


i use script upload files via post android app server. 95% of time works ok, upload folder of clients empty. file sent definitely, because name , phone numbers (without file selected app not pass data), uploaded file not written disk on server. not expert in php, maybe have missed something:

my upload php script:

$file_path = "uploads/{$_post['name']}/";  if (!file_exists("uploads/{$_post['name']}")) {     mkdir("uploads/{$_post['name']}", 0777, true);   } else {     echo 'folder exists!'; }   $newfile = $_post['name'] . "_" . date('m-d_h-i-s') . '.zip'; $filename = $file_path . $newfile;  if(!file_exists($filename)) {     if(move_uploaded_file($_files['zipfile']['tmp_name'], $filename)) {     echo "success";     }  } else  {     echo 'file exists';  } 


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -