Updating Row for Uploaded File - Does not work
My problem is with step 7 when I want to attach this newly uploaded file to my file field in the database table. As per your documentation this should be a PATCH request now for the endpoint /api/database/rows/table/[TableId]/[RowId]/
The API response of the uploaded image “name” - is ending with a dot “.”. Why is that so? It seems there is a file type to be added but the response is cutting this off.
When I tried to call the API endpoint to update the file field for the uploaded image, whatever I try, I get the following error message below:
The API response of the uploaded image “name” - is ending with a dot “.”. Why is that so? It seems there is a file type to be added but the response is cutting this off.
The extension will be excluded if Baserow is unable to determine the extension to use for the file. This should not be an issue as the filename remains valid and can be used as it.
When I tried to call the API endpoint to update the file field for the uploaded image, whatever I try, I get the following error message below:
I was able to replicate this issue.
The comma after the closing square bracket ] makes the body an invalid JSON document. Remove it and try again.
Also remove the extension you’ve added as that will make the filename invalid.
Actually the problem was that I was trying to upload images from Google Drive URL. This does not work, since Google URLs are not file URLs. I first had to download the images and then upload to a public url, then using the API endpoint /api/user-files/upload-via-url/.
Your API then works when uploading a file from an URL.
As a sidenote, the other API endpoint /api/user-files/upload-file/ I also tried but this is impossible to understand how to do this. Also the Element in Make.com “Upload a File” I don’t understand why this is not tied to the API parameters in your API documentation.