could anyone help me with uploading a file through a PUT request to my S3-compatible storage please? So I’m using a file uploading element, and tried binding the element’s value-variable into my API request. However not really sure what goes where, I tried adding a “content”-key and as a value the binding to the file object. This doesn’t work. There is a record created in my S3, but it’s corrupted and missing the content, i.e. the file itself and just few bytes in size. Also tried several variations, but wasn’t successful.
thanks a lot! So I’m not uploading the pdf to WeWeb, but only using the file upload element to pick the pdf (it creates a file object). I want to use this file object and upload directly to my S3 endpoint. I know it’s there but don’t really know how to properly place it into in a “API-request”-workflow. The same request does work with Postman, however with Postman I just select the file of course.
It does work though when following the tutorial under ⬆️ File Upload, using a custom JS workflow including creating a new formData and using axios.put for uploading. However the issue I’m lacking JS knowledge and it keeps on breaking when adding additional headers to my request, see screenshots
It does work with just the content type header, but I need the additional header X-Amz-Acl (for setting S3 permissions)
As mentioned in my first post, if I use the other option, API request workflow, it does create a file in my bucket as well, however it’s missing the content (the file object) itself and it’s just a few bytes in size.
I’m not very knowledgeable about JS. I got through the first step, but when trying to create a record in my back end (Xano), I ran into this error: “Missing param: type”. I am trying to upload a word doc through Xano’s “Upload an Attachment” end point.
My next question is going to be about uploading multiple files at one time directly to Xano, so if anyone has an answer for that, it’d be much appreciated!