ajax file upload
问题 I am struggling to get a file uploaded, processed and displayed without reloading the page. What do I use for jquery to get the file posted to the 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> 回答1: You can do it by putting the upload form in an iframe and communicating between