``` fetch('<https://api.graph.cool/file/v1/cj3...
# prisma-whats-new
d
Copy code
fetch('<https://api.graph.cool/file/v1/cj3rp40vd64ho0113z6fynxxm>', {
      method: 'POST',
      body: data
    }).then(response => {
      console.log(JSON.stringify(response, null, 2))
      return response.json()
    }).then(file => {
      console.log(file);
    }).catch(err => {
      console.log('err : ', err);
    })
n
@darkbcx what's
data
🙂
d
Copy code
const data = new FormData();
    data.append('data', strBase64, 'test.png');
all i got is just an
ImageSource
object. so i convert it to base64 string
a
you might something like the dataURItoBlob from here: https://gist.github.com/poeticninja/0e4352bc80bc34fad6f7 but I'm not 100% sure