Using RAD Studio XE7, I need to post files using the TRESTRequest component.
Unfortunately, I did not find a AddFile() method in this version of the component.
So, I have to find a solution that allows me to do this using the TRESTRequest's Parameters and Body options.
I can't use other components, like TIdHTTP, because there is a Token authentication management that I would like to avoid redoing in other ways.
So, my question is: Does there exist a way, in RAD Studio XE7, to post a file using the multipart/form-data format, where you select the file and upload it?
As with the TRESTRequest.AddFile() method of later RAD Studio versions, the filename will have to be passed along with the file contents, because the REST server expects this.