Login   Register  
Icontem

Error response

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      HTML5 AJAX File Upload  >  All threads  >  Error response  >  (Un) Subscribe thread alerts  
Subject:Error response
Summary:Error response
Messages:1
Author:divrart
Date:2014-03-07 20:22:37
 

  1. Error response   Reply  
Picture of divrart
divrart
2014-03-07 20:22:37
Hello.
I download the project but when I'm going to use everything goes correctly unless the server response.
The error is simple.
The problem was in the ajaxuploader.js file, line 229 (rqst.send(file)), when you send something to the server the server response must be in json format and it was not.

Only need tu change this line upload.php:
echo "$fn uploaded";
New One:
echo json_encode(array('msg' => "$fn uploaded"));

Regards.