I have successfully been able to upload files from Android to my server. I followed this tutorial and it works with no problem. Now I need to also send a string along with the file that will be added to the file name once it is uploaded. For example:
Upload my file – myFile.mp3
Upload my string = “|myString”
The file needs to be stored on my server as “myFile.mp3|myString”.
Any help would be greatly appreciated. I’m just not quite sure where to place the string to upload it and how to retrieve it in the PHP code.
After looking around some more and trying different things, it finally works. I added this to my java code:
and this to my PHP code to get the string: