php - after upload some of the image are missing -
i encountered problem when user upload photo server , of image missing or image wrecked.
is there exist experience problem , why happen , how can handle it?
i'm using http://flourishlib.com/docs/fupload class,
$uploader = new fupload(); $uploader->setmimetypes( array( 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/png' ), 'isnotimage' ); $uploaded = fupload::count('file'); ($i=0; $i < $uploaded; $i++) { try { $files[] = $uploader->move(file_path ."public/_file/uploads/slider/", 'file', $i); } catch (exception $e) { $message[] = $e->getmessage(); return false; } }
it's works me in local without problem
Comments
Post a Comment