What is the best practice for uploading images fro...
# android
a
What is the best practice for uploading images from device storage to a server in android with kotlin? Currently building a social media app where the user can create content which gets uploaded to my database via Apollo GraphQL mutations. But I’m not sure on how to upload the image from the device to my server? I want to save the url to that image on my database.
😶 1
m
There's a way to do this in GraphQL (the Apollo Kotlin doc is there). But in general, GraphQL isn't really designed to do this so the general recommendation is to do this using an out-of-band mecanism like Amazon S3 signed urls or something else
☝️ 1
It all depends what your server is supporting