Upload Json To Remote Server Database Error

Hi There ,

   I need an urgent help on my corona code , problem was can’t able to upload json to remote server database (using multipart corona sdk ) , but i can upload using browser , with this i have attached all the necessary files , please help me asap , it was urgent

Thanks

I think part of the problem is your PHP script.  It’s outputing an HTML form which Corona SDK’s network calls is reading as the output from the script.  You’re using a 3rd party library that I really don’t know what’s going on.  You also need to check on your host side and make sure the $_FILES array is really being populated correctly.

Rob

Hi Rob,

   Thanks for the quick reply, but i want let you know that , the same code works ( php + corona ) well when using local hot server ( xampp ) mac, the file uploaded successfully to local host server , when changed to remote server it fails. so please help me.

Thanks

As I said you need to put some echo statements in your PHP script on the remote host and see if your $_POST array is getting filled out correctly as well as the $_FILES array. If not, you can google for empty $_POST arrays and find out the various fixes on your PHP side that can help with this.

Corona Lab’s can’t really provide support for the various web hosting and web scripting systems that you might yse.

Rbo

I think part of the problem is your PHP script.  It’s outputing an HTML form which Corona SDK’s network calls is reading as the output from the script.  You’re using a 3rd party library that I really don’t know what’s going on.  You also need to check on your host side and make sure the $_FILES array is really being populated correctly.

Rob

Hi Rob,

   Thanks for the quick reply, but i want let you know that , the same code works ( php + corona ) well when using local hot server ( xampp ) mac, the file uploaded successfully to local host server , when changed to remote server it fails. so please help me.

Thanks

As I said you need to put some echo statements in your PHP script on the remote host and see if your $_POST array is getting filled out correctly as well as the $_FILES array. If not, you can google for empty $_POST arrays and find out the various fixes on your PHP side that can help with this.

Corona Lab’s can’t really provide support for the various web hosting and web scripting systems that you might yse.

Rbo