Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <script type="text/javascript">
  2.         $(document).ready(function () {
  3.             $("#uploader").uploadify({
  4.                 'async': true,
  5.                 'uploader': '../../Scripts/uploadify/uploadify.swf',
  6.                 'script': '<%= Url.Action("Upload", "House") %>',
  7.                 'cancelImg': '../../Scripts/uploadify/cancel.png',
  8.                 'folder': '../../Uploads/',
  9.                 'fileExt': '*.jpg;*.gif;*.png',
  10.                 'fileDesc': 'Image Files (.JPG, .GIF, .PNG)',
  11.                 'auto': true,
  12.                 'multi': true,
  13.                 'fileDataName': 'fileId',
  14.                 'queueID': 'uploadLoger',
  15.                 'onComplete': function (event, ID, fileObj, response, data) {
  16.                     $.getJSON("/House/List", function (data) {
  17.                         $("#thumbs").html('<img src='+data+' />');
  18.                     });
  19.                 }
  20.             });
  21.         });
  22.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement