Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function () {
- $("#uploader").uploadify({
- 'async': true,
- 'uploader': '../../Scripts/uploadify/uploadify.swf',
- 'script': '<%= Url.Action("Upload", "House") %>',
- 'cancelImg': '../../Scripts/uploadify/cancel.png',
- 'folder': '../../Uploads/',
- 'fileExt': '*.jpg;*.gif;*.png',
- 'fileDesc': 'Image Files (.JPG, .GIF, .PNG)',
- 'auto': true,
- 'multi': true,
- 'fileDataName': 'fileId',
- 'queueID': 'uploadLoger',
- 'onComplete': function (event, ID, fileObj, response, data) {
- $.getJSON("/House/List", function (data) {
- $("#thumbs").html('<img src='+data+' />');
- });
- }
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement