Sending MMS with jar but filename contain + character | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through October 14, 2015 ⬆ |
◄ ► |
Author | Message | |||
Julien Reynaud New member Username: Julien_r Post Number: 4 Registered: 12-2013 |
Hello, I have a question for Java specialist and POST request to Now SMS. We use the jar sample given on this site. The problem happen when we have a file name with a "+" character in. So when uploading to NowSMS server there is an issue because the + character is equivalent to a space for http request. We don't what to do because we don't have to modify the filename on call to jar in order to have "File" working, but just before the request creation/sending. Its a pain to understand, so if anyone have an idea it would be really helpful. Thank in advance Julien | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4775 Registered: 08-2008 |
Hi Julien, I can confirm, this is a bug. Unfortunately, it cannot be corrected in the Java library. This is a bug in how HTTP file upload (multipart/form-data) submissions are being handled by the server. A filename with a + character will cause the server to respond with an error and refuse to accept the message submission. I have reported this problem to our engineering team. However, with the holidays approaching, I do not expect that there will be a fix until after the new year. -- Des NowSMS Support |