Hi,
we developed a RhoMobile applicaton, where it is possible to capture a signature and send this signature to a server.
For the uplaod, we use the network upload file function:
r = Rho.Network.uploadFile(obj);
When we use a HTTP connecton the file upload is working fine. We tested to send an image with about 1 MB and this is transferred within few seconds.
When we use a HTTPS connection, the upload is working fine for small files (e.g. a 2,5 KB png file is working). If there is a bigger file, for example with 100 KB, on some devices the server returns immediatley status 400 and no result message and on other devices we are running into a timeout. But if we change the connection type to HTTP it is working fine.
Is there a difference between a HTTP and a HTTPS connection for the file upload?
Is there maybe a special parameter for the timeout or something else which should be configured in addition?
Thank you in advance.
Best Regards,
Andreas
1 Replies
To my knowledge, there is no difference.
Have you tried increasing the timeout value as described here http://docs.rhomobile.com/en/4.0.0/api/Network#presponseTimeout
If that is also not working, then do you see any error messages and app side and server side?
Visnupriya R
Kutir Mobility