Describe the problem/error/question
Trying to upload a file to a pocketbase database.
I tried all kinds of different versions to get a binary file i get from a webhook to upload. hitting a bad request error. (or source.on, or [object object] …
cannot get the file uploaded. tried form data, binary n8n, with all kinds of different setups … im hitting a wall here… please help - thanks!
(i simplified the setup to get closer to the source. normal record creating works - just as soon as I try to send the file to the file field it does not)
What is the error message (if any)?
Problem in node ‘Upload file‘
Bad request - please check your parameters
400 - "{\"code\":400,\"message\":\"Failed to create record.\",\"data\":{}}\n"
Request
{ "headers": { "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7", "content-type": "multipart/form-data; boundary=--------------------------626592690690636155903308" }, "method": "POST", "uri": "http://host.docker.internal:8090/api/collections/files/records", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "formData": { "file": { "value": { "type": "Buffer", "data": [ 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 2, 208, 0, 0, 3, 132, 8, 6,
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.67.1
- Database (default: SQLite): sqlite
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker
- Operating system: macos 15.1