Skip to content

React Native CSRF Error #293

@luco

Description

@luco

Hey, I'm trying to get to work with React Native 0.68.1, wrapping the file with:

const avatar = new ReactNativeFile({
    uri: file.path,
    name: file.filename,
    type: file.mime,
});

And getting this error:
networkError ServerParseError: Unexpected token T in JSON at position 0.

Tried using apollo-upload-client on 17.0.0 and 16.0.0. The mutation doesn't work only when I include a Upload in the variables.

The upload works via Postman.

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