jquery - ajax file upload -
i struggling file uploaded, processed , displayed without reloading page. use jquery file posted server properly?
<html> <body> <form action="upload.php" method="post" enctype="multipart/form-data" id="uploadform"> <label for="file">filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" id="submit" /> </form> </body> </html>
you can putting upload form in iframe
, communicating between main window , frame javascript. it's ugly it's way in browsers.
jquery file upload awesome plugin incorporates async xhr uploads , falls on iframe
browsers not capable. supports drag , drop (for capable browsers) out of box. it's not simplest plug-in in world use, worth effort, covers bases.
Comments
Post a Comment