Skip to content

DocumentPicker Output Inconsistent Mobile vs Web #6789

@CoinCoderBuffalo

Description

@CoinCoderBuffalo

SDK 35

android

pickerResult: Object {
  "name": "menu.pdf",
  "size": 178600,
  "type": "success",
  "uri": "file:///data/user/0/host.exp.exponent/cache/ExperienceData/%name%252Faog/DocumentPicker/addef52c-3d59-4d5d-b584-b9be6b337d48.pdf",
}

web

pickerResult: {type: "success", uri: "data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iag…vSW5mbyA3IDAgUgo+PgpzdGFydHhyZWYKMTU5MQolJUVPRgo=", name: "history.pdf", file: File, lastModified: 1575519155785, …}

I prefer the web output that is base64 because I'm uploading to s3 after. Will have to figure out how to upload the local file URI.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions