currently I am trying to submit form data through your Form API. My form contains a file field and although I was able to send simple text data, I can´t find any examples how to submit the data of my file field when submitting the form.
File upload properties are text properties, and they’re designed to store the URL of a file that’s uploaded to some storage platform. The property itself cannot store an actual file, so if you’re using an upload property in a custom form, you’d need to upload the file separately, and then store a URL that could be used to access that file in the actual form field being sent to HubSpot.
Iam aiming to add a custom file field to a form but would like to host the actual file also on hubspot and make it accessible somehow (embed into another website).
@andreas.tinocolobo when you upload a file to the file manager, the response will contain the JSON data for the new file (the same thing you’d get from this endpoint). That response will include a url, which is the URL of the file.
Keep in mind that files in the file manager would be accessible by anyone with the URL, so it should not be used for files with any type of sensitive information.