Community Forums

Development Forum

json_encode() used to print errors

Page: 1
Subject: json_encode() used to print errorsQuote this post in your reply
When uploading through the profile picture upload page, if "upload" is clicked without choosing a file, it prints a json object on a blank page. This is because, in the file mods/_standard/photos/albums.php json_encode() is used along with exit. I could not get why this has been done instead of the regular way of printing errors.

As far as I can see, if any error exists, like file type not supported, then error is printed on a blank page in json format.
Posted: 2013-03-18 13:56:30
Page: 1

You must be signed-in to post.

Related Articles