Skip to content

Handling file uploads? #58

@isocra

Description

@isocra

Hi,

I know this isn't really an issue with your excellent packages, but I'm stuck. I have an app used by engineers to take photos of a work site. They're often offline. I used to use the AWS AppSync SDK which had a feature that would transparently upload photos to S3. Unfortunately they're not maintaining it now and it doesn't work with the latest React Native, Apollo or Expo, so hunting around I found these packages which work really well.

Unfortunately I can't find a way to handle images though. I tried turning the image into Base64 and then setting a property. This works OK as long as the image isn't very big. But I soon got errors from our AppSync server with medium-sized photos. I also got problems on the device saying the data was too large for the cache.

I've just been looking at Expo SDK38's new FileSystem.uploadAsync. This looks very neat because it works in the background, but I can't make it work with Android, only iOS so far and I'm not sure how to integrate it with GraphQL.

Any ideas anyone?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions