convert content URI to FileUpload

96 Views Asked by At

I get content URI from getContent and I want to convert it to FileUpload

  object upload : FileUpload(mimetype) {
    override fun contentLength(): Long {
      TODO("return contentLength here")
    }
    override fun fileName(): String? {
      TODO("return fileName to use in the multipart request here")
    }
    override fun writeTo(sink: BufferedSink) {
      TODO("write the data here")
    }
  }
0

There are 0 best solutions below