I just ran into the following problem: I am using the FileManager API in order to upload documents which ultimately will be connected to a contact (https://legacydocs.hubspot.com/docs/methods/files/v3/upload_new_file). For this, I am using PHP 7.4, following precisely the instructions given in the above-mentioned page. For whatever reason, the $response = @curl_exec($ch); leads to the object being displayed on the screen, instead of being stored in the variable:
Hence, I cannot json_decode the response and also not use the information at all; in the end, I just require the friendly URL to attach it to contact.
Does anybody know why this is the case? As far as I know, it worked fine beforehand (I used the same code some time last year). Thank you very much in advance for your help!