duan89197 2014-07-30 11:50
浏览 68

上传图片php时出错

Hello I have a problem with croppic script when i choose photo to upload i see this error in firebug console

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

and this error in photo url :

{"status":"success","url":"http:\/\/localhost\/icareer\/temp\/10505530_522065094589095_8292243821778754473_n.jpg","width":960,"height":768}

any one can help me ?

  • 写回答

2条回答 默认 最新

  • duanleiming2014 2014-11-12 13:04
    关注

    i think i fixed this.

    earlier when my response Content-Type was application/json, i was getting this error - SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data.

    but changing response Content-Type to text/plain solved the problem.

    weird!!!

    评论

报告相同问题?

悬赏问题

  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入