How to use HTTP Post with API (File upload) - error 400 bad request
I think I managed to go through the CORS problems I've been having for a quite some time.
I'm trying to use Angular's HttpClient. I've builed simple xml file using xmlBuilder in the typescript - and I would like to post it to the desired subfolder using Alfresco API. I've been trying to use that kind of snippet to post it but I'm getting error 400 with a bad request as a status - I think I'm missing certain headers or something like that in this http post but I'm not sure what exactly and how to do it to be able to post xml file. Moreover - I am not sure how to set a certain folder as a target folder for the newly posted file.