I am struggling to understand the correct way to get a custom option that is an uploaded file to attach correctly when adding a product to cart via graphql.
I have tried using
entered_options: [ {uid: option_uid, value: (see below) }]
where value has been:
- base_64 encoded image string
- JSON.stringify( {file_name: string_name_of_file,file_data: base64 image string} )
Each time I try to add the product to cart, the file is not uploaded. (The field is not required)
Any pointers on the best way to get the image to upload when the product is added to cart would be awesome!
Thank you!