colap Posted December 3, 2015 Share Posted December 3, 2015 How can i do multiple uploads with javascript? http://www.w3schools.com/php/php_file_upload.asp , this is to do image uploads with php. Is it possible to upload files with javascript? Can anyone post example code? Is it possible with jquery ajax ? How would i write this form for javascript upload? <form action="upload.php" method="post" enctype="multipart/form-data"> It will be highly appreciated if someone helps. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/299627-how-can-i-do-multiple-uploads-with-javascript/ Share on other sites More sharing options...
mikesta707 Posted December 3, 2015 Share Posted December 3, 2015 A quick google search provided this https://blueimp.github.io/jQuery-File-Upload/ I'm sure if you use google further you could find one that specifically meets all of your needs. Multiple jQuery file upload. You will probably still have to process the file uploads in the backend with PHP or something, but I believe this plugin will handle the front end stuff for you. Quote Link to comment https://forums.phpfreaks.com/topic/299627-how-can-i-do-multiple-uploads-with-javascript/#findComment-1527506 Share on other sites More sharing options...
Ani123 Posted January 1, 2016 Share Posted January 1, 2016 Hey,,try this in your code: <input type="file" multiple /> To select multiple files you need to press the Ctrl key and click on the files you want to add. Quote Link to comment https://forums.phpfreaks.com/topic/299627-how-can-i-do-multiple-uploads-with-javascript/#findComment-1528921 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.