I have to upload a image file to a server,I have used okhttp multipart upload request to send the request,I have tested the upload in lan using php server and it works perfectly in lan.
But when the php code is hosted in web it does not work.It gives this error in the app
So I thought there is some server configuration issue and tested the same request using postman in my laptop and the file was uploaded perfectly..I Am totally confused why this is not working in App in web (but works on lan)
But this line here shows its a get request..but multipartpost is a post request Why this happens...!
Any idea or suggestions>?
But when the php code is hosted in web it does not work.It gives this error in the app
B4X:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>GET to /photo_admin/mobile_api.php not supported.<br />
</p>
<p>Additionally, a 501 Method Not Implemented
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
Method Not Implemented
So I thought there is some server configuration issue and tested the same request using postman in my laptop and the file was uploaded perfectly..I Am totally confused why this is not working in App in web (but works on lan)
B4X:
<p>GET to /photo_admin/mobile_api.php not supported.<br />
But this line here shows its a get request..but multipartpost is a post request Why this happens...!
Any idea or suggestions>?