Ok I tested the new JSON online:
HEREAnd here is the problem. The output is:
- Code: Select all
"noticesImage": "/home/genxcode/public_html/demo/TDirectory/uploads/attachments/acde3b4477427b3cb961cd5cbfd155b9.png"
Where as the expected output should be:
- Code: Select all
http://www.sitename.com/couch/uploads/attachments/acde3b4477427b3cb961cd5cbfd155b9.png
On the localhost it works fine and outputs what is required in the format:
- Code: Select all
"noticesImage": "E:/wamp/www/TDCouch2/couch/uploads/attachments/acde3b4477427b3cb961cd5cbfd155b9.png"
So when I test it with localhost, the output is fine on the app. But the moment i shift to the server, the application breaks as it cannot get a easy to read JSON value in the key:value pair.
Any suggestions?