php - html5 file uploader/ move_uploaded_file issue -
i found plugin html5 file uploader liked (resumable) , have working except on server (php) end when file saved hard disk. maybe can have , give me suggestions? because keep getting log error message, suspect have problem @move_uploaded_file
, permissions? alternatively, if let me know php errors, useful too. i'm beginner.
$temp_dir = '/public_html/uploads/'.$_post['resumableidentifier']; $dest_file = '/public_html/uploads/'.$_post['resumablefilename'].'.part'.$_post['res umablechunknumber' // create temporary directory @mkdir($dir, 0777, true); // move temporary file if (!@move_uploaded_file($file['tmp_name'], $dest_file)) { _log('error saving (move_uploaded_file)';
why suppress error messages @mkdir & @move_uploaded_file? remove @'s, write ini_set('display_errors', 1);
error_reporting(e_all);
@ begin of script if don't see php-errors , messages appear.
also check variables. you're setting $temp_dir trying create directory $dir.
Comments
Post a Comment