<@U0NBDHSM7> it turns out that I shouldn't pass th...
# prisma-whats-new
a
@sorenbs it turns out that I shouldn't pass the path to the local file as string. It should be an object defining the type, name, and uri. Here's what I changed the code to and it now works:
Copy code
data.append('data', {
            type: 'image/jpeg',
            name: newProduct.name + '-' + new Date().getTime() + '.jpg',
            uri: image
        });
👍 2