I’m trying to upload an image. I’m using stagedUploadsCreate, which uploads the file to GCP, then I’m passing the resource URL to fileCreate, which should add the image to my store. However, I’m getting a Processing error message when checking the files page.
I tested downloading the file to my computer using the resourceURL and when opening it using GIMP I get the following message “Not a JPEG file: starts with 0x2d 0x2d”
Then I compared the original file and the downloaded file using a text editor. The files match except that the downloaded file has the following text appended to the beginning.
–05c727c6d6d7efb8678eb2a61cad52e6
Content-Disposition: form-data; name=“content_type”; filename=“content_type”
image/jpeg
–05c727c6d6d7efb8678eb2a61cad52e6
Content-Disposition: form-data; name=“acl”; filename=“acl”
private
–05c727c6d6d7efb8678eb2a61cad52e6
Content-Disposition: form-data; name=“file”; filename=“bih_0.jpeg”
Am I doing something wrong on my end?