As the article suggests, I'm using two staged approach, but I'm attempting to adapt for an image instead of text in that case.
First query to update metadata (mimeType: images/jpeg)
Second query to upload the image data (base64Data) from a separate API request.
In the second query, i've structured it as a PATCH where uploadType = media and body is {{static_image.data}} which is the response from the API request.
I'd be extremely appreciative if anyone has thoughts on what I might be doing wrong here.
What do you get? Do you get any error or some other outcome? Do you get no file even though authentication is successful?
I am also having some difficulties. I was getting no results and then suddenly it started making files. Seemed like there was a lag to the authentication or something.
it seems to work for both jpg and pdf files (but not for png). The filetype comes from the fileDropzone data, but yes, for this file it's "image/jpeg". And Content-Length is taken from the sizeBytes property of that too.