Advertisement
Guest User

Untitled

a guest
Feb 25th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>jQuery File Upload Example</title>
  6. </head>
  7. <body>
  8. <input id="fileupload" type="file" name="files[]" data-url="server/php/?index.php" multiple>
  9. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  10. <script src="js/vendor/jquery.ui.widget.js"></script>
  11. <script src="js/jquery.iframe-transport.js"></script>
  12. <script src="js/jquery.fileupload.js"></script>
  13. <script>
  14. $(function () {
  15. $('#fileupload').fileupload({
  16. dataType: 'json',
  17. done: function (e, data) {
  18. $.each(data.result.files, function (index, file) {
  19. $('<p/>').text(file.name).appendTo(document.body);
  20. });
  21. }
  22. });
  23. });
  24. </script>
  25. </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement