Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

{"success":true} but fineuploader shows error #832

Closed
BeyondME opened this issue May 10, 2013 · 8 comments
Closed

{"success":true} but fineuploader shows error #832

BeyondME opened this issue May 10, 2013 · 8 comments

Comments

@BeyondME
Copy link

the php server script returns {"success":true}, and upload the file correctly, but in the webpage, it shows that there was an error uploading in red.

@rnicholus
Copy link
Member

You'll have to provide more information then this. The link at the top of the new issues page explains how to properly file a report.

@rnicholus
Copy link
Member

...for example, log messages from the javascript console would be helpful here...

@sergiodlopes
Copy link

Indeed, more information is needed to debug.

Maybe header's Content-type with value "application/json" is missing from server-side response?

@rnicholus rnicholus reopened this May 10, 2013
@rnicholus
Copy link
Member

No, that is definitely not the issue. The documentation is pretty clear about returning a content type of text/plain since IE does not handle application/json properly in responses.

@BeyondME
Copy link
Author

Ok, excuse me.

im using fineuploader 3.5 , with the php server script from https://github.com/Widen/fine-uploader-server . Tried in firefox 20 and chrome under Windows 7.

Console debug:

Uncaught ReferenceError: createUploader is not defined /gestor/misarchivos.php:53
[FineUploader] Error when attempting to parse xhr response text (SyntaxError: Unexpected token D) jquery.fineuploader-3.5.0.js:155
[FineUploader] 'error' is not a valid property on the server response.

@BeyondME
Copy link
Author

Uncaught ReferenceError: createUploader is not defined misarchivos.php:53
[FineUploader] Processing 1 files or inputs... jquery.fineuploader-3.5.0.js:150
[FineUploader] Sending upload request for 0 jquery.fineuploader-3.5.0.js:150
[FineUploader] xhr - server response received for 0 jquery.fineuploader-3.5.0.js:150
[FineUploader] responseText =
Deprecated: Function split() is deprecated in /var/www/vhosts/docs.beyondweb.es/httpdocs/gestor/subidaajax.php on line 29
{"success":true} jquery.fineuploader-3.5.0.js:150
[FineUploader] Error when attempting to parse xhr response text (SyntaxError: Unexpected token D) jquery.fineuploader-3.5.0.js:155
[FineUploader] 'error' is not a valid property on the server response.

@rnicholus
Copy link
Member

It seems pretty clear that your response is not valid. I suggest looking at the raw response in Chrome's network tab. I'm sure you'll find that it is invalid. This is a support request, and support is handled on SO, so I'm closing this. I don't see any bug in Fine Uploader here.

@BeyondME
Copy link
Author

ok, excuse me !!! split() deprecated function xD i was using it to extract alloweb extensions from a string... now using explode and is working perfect

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants