API for File Storage
Upload file with API Endpoints
Step 1
Create a field type of link
to FileUpload
data structure
Create an API Endpoint which includes that field for POST requesting. Also, include urlLink
field for reading to get url of the uploaded file.
And now, you could send multipart/form-data
request with file (you could use any library for uploading a file to Directual)
And these API will return url to your file (if you include urlLink for GET-requesting):
Sample code for React JS
Explore Directual boilerplate for ReactJS
Legacy file-upload API
POST to https://api.directual.com/good/api/v3/file/upload?source=others&appID=appID&appSecret=appSecret
Last updated