Re: [codenameone-discussions] Re: Problems submitting an image using MultipartRequest

2021-06-30 Thread Shai Almog
Hi, multipart is a multipart file upload. Which isn't "form-data" it's "x-www-form-urlencode" which is a very different thing. If you don't need that you shouldn't use multipart and should use a regular connection request. Just submit the file as a byte[]. If an argument is passed as get just

Re: [codenameone-discussions] Re: Problems submitting an image using MultipartRequest

2021-06-30 Thread rdvg...@gmail.com
Hi, Uff, at some point delete the line "addToQueue (mp);". Also note that although in Postman I use the "POST" method it is necessary for the parameters to be detected in PHP with $ _GET ['variable'], however when it is executed from a client it is necessary to use $ _POST ['variable'].

Re: [codenameone-discussions] Re: Problems submitting an image using MultipartRequest

2021-06-30 Thread rdvg...@gmail.com
Hi, Thank you mr Shai and mr Javier for your reply I thought it worked, but I was wrong. *I'm going to name everything I've done. As I mentioned in postman it works fine and this is the configuration:* [image: Postman.png] *The code in PHP is small and although it is not the topic of this forum

[codenameone-discussions] Re: Problems submitting an image using MultipartRequest

2021-06-29 Thread rdvg...@gmail.com
Hi, I asked him about the arguments because I did not get the ws to recognize them El Tuesday, June 29, 2021 a la(s) 8:33:36 PM UTC-5, Shai Almog escribió: > Hi, > using the regular addArgument should work just fine. It will be added to > the multipart seamlessly. > > On Wednesday, June 30,

[codenameone-discussions] Re: Problems submitting an image using MultipartRequest

2021-06-29 Thread Shai Almog
Hi, using the regular addArgument should work just fine. It will be added to the multipart seamlessly. On Wednesday, June 30, 2021 at 3:15:35 AM UTC+3 rdvg...@gmail.com wrote: > Hi, > > Detect the problem by including the following parameters: > mp.setFilename ("image",