¡@

Home 

2014/10/16 ¤W¤È 12:09:22

jquery Programming Glossary: thegoodstuf

upload multiple images with jquery ajax and process them with php

http://stackoverflow.com/questions/15259632/upload-multiple-images-with-jquery-ajax-and-process-them-with-php

who need the php side to do something with those images here is the php code to loop trough php succeed 0 error 0 thegoodstuf '' foreach _FILES img error as key value if value UPLOAD_ERR_OK succeed get the image original name name _FILES img name.. shame on you move_uploaded_file. copy _FILES 'img' 'tmp_name' key '. upload '. name make some nice html to send back thegoodstuf . br hr br h2 Image succeed name h2 br specs br width width br height height br mime type mime br .. uploaded br ' echo 'O jeah there was a field containing some usual form data '. _REQUEST 'some_usual_form_data' echo thegoodstuf live demo at my dev web server which is not always online If you want to compress and resize You need this class class SimpleImage..