APIs & Integrations

DavidFJones
Member | Platinum Partner
Member | Platinum Partner

Upload video file via api to hubdb table

SOLVE

Hey everyone,

So this is a two part question. The first is how would one go about uploading a file into the hubspot file manager? I've seen this doc here - https://legacydocs.hubspot.com/docs/methods/files/post_files?_ga=2.184255264.788155974.1597679325-50...
but am not familiar with python. Also I'm not sure if this solution could be implemented with json instead of python.

The second question would be once I have uploaded a video via the api, how would I add the video to a hubdb column?

So far I'm populating a hubdb table with this endpoint - https://legacydocs.hubspot.com/docs/methods/hubdb/v2/create_row
but I don't see anything in the docs about video. Would the process be the same as adding an image? ie:

"video_field": {
  "url": "http://domain.com/video.mp4",
  "type": "video"
}


Ultimately what I'm trying to do is to create a custom form (I have a few reasons to not be using a hubspot form) that allows the user to upload a video, and this video should then be placed within a hubdb table.

Currently I have the form uploading all the pieces of data I need except for the video/images.

0 Upvotes
1 Accepted solution
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Upload video file via api to hubdb table

SOLVE

Hey @DavidFJones & @ramanverma2005 

Thank you @natsumimori 


Check out these endpoints.  And the FormData package for mutlipart file upload:

const FormData = require('form-data');

https://community.hubspot.com/t5/APIs-Integrations/Sending-files-to-serverless-function-with-html-fo...

 

Uploading the file returns a url. Take that URL and insert into the HudDB

 

Kevin Cornett - Sr. Solutions Architect @ BridgeRev

View solution in original post

3 Replies 3
Kevin-C
Solution
Recognized Expert | Partner
Recognized Expert | Partner

Upload video file via api to hubdb table

SOLVE

Hey @DavidFJones & @ramanverma2005 

Thank you @natsumimori 


Check out these endpoints.  And the FormData package for mutlipart file upload:

const FormData = require('form-data');

https://community.hubspot.com/t5/APIs-Integrations/Sending-files-to-serverless-function-with-html-fo...

 

Uploading the file returns a url. Take that URL and insert into the HudDB

 

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
ramanverma2005
Participant

Upload video file via api to hubdb table

SOLVE

How I can pass the video upload via input type file from HTML using serverless functions when I try using axios post in body I am getting {} empty @Kevin-C  @Jake_Lett 

0 Upvotes
natsumimori
Community Manager
Community Manager

Upload video file via api to hubdb table

SOLVE

Hello @DavidFJones ,

 

I wanted to tag in some subject matter experts here for discussion.

@Kevin-C and @Jake_Lett , would you mind sharing your ideas for @DavidFJones ?

0 Upvotes