I use plipload this plugin to upload files, each time the file can be uploaded successfully, but there is no way to get the data returned by the server, it has provided an instance, but I have been tested to find that the return code does not work, because anyway it will show all success.
I Google a long time online some people say can not find the callback function, this is easy to find to see the source on the line, but in the callback function also can not print out my server side of the data returned, here is my callback function:
Is anyone using this? Some words please help AH, greatly appreciated!!
Reply to discussion (solution)
It's "plupload" on the wrong ....
I also met the same problem, how to solve ah?
How to write the callback function???
Did you solve it? What is the callback function up?
I write to the database, then go to the database read
Look at the source code, there is a way to get response:
Up.trigger (' fileuploaded ', file, {
Response:xhr.responseText,
Status:xhr.status,
ResponseHeaders:xhr.getAllResponseHeaders ()
});
So you can use the ' fileuploaded ' method in the foreground to get the response information after uploading, corresponding in your background code to return the relevant response information, such as:
Init: {
Fileuploaded:function (Up,file,result) {
alert (result.response);
}
}
That's all you can do.