Ajax upload plugin throwing jQuery.handleError not found

后端 未结 6 648
耶瑟儿~
耶瑟儿~ 2020-12-30 01:29

Am using the ajax file upload plugin from PHP Letter and am using jQuery 1.6.2.The files upload properly, but am unable to user the JSON data returned from the php script, w

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 02:02

    This article applies the AJAX Upload well and explains although its for codeigniter. It did work for me except that I had to replace

    dataType : 'json'

    by

    dataType : 'html'

    seems has some issue with json

    also relative url didn't work for me so i put an absolute url.

     url         :'http://localhost/satyam/LifeBook/places/upload_file',
    

    and not to foreget obviosly you need to write the handlError function in the ajaxupload.js file to the end. http://www.kovloq.com/2011/10/23/ajax-upload-using-codeigniter/

提交回复
热议问题