Questions tagged [expo-file-system]
22 questions
4
votes
0 answers
How to download a file without displaying directory selection UI when calling StorageAccessFramework in expo-file-system
I'm making a function to save a file downloaded from a server via expo-file-system.
In this code, when you click the download button on Android, the file selection UI appears, and when you select a file, the file is downloaded. However, I want files…

extradeck
- 366
- 1
- 5
- 19
1
vote
0 answers
Why does my database load fully using expo-file-system in development with Expo Go, but it doesn't fully load using TestFlight?
I'm creating a simple app that uses data in a preloaded database from an assets folder ("../assets/worldEnglishBible.db" (4.8 MB). I'm utilizing expo-sqlite to query the data and expo-file-system to load the database so it can be used by…

Sam Sweetin
- 11
- 2
1
vote
0 answers
react-native-fs, expo-file-system and rn-fetch-blob, will not overwrite a file on android simulator and real device
I am trying to overwrite an image with a new image on Ios works perefctly, but on android it only creates the file the first time and then you cannot ovewrite it. I tried react-native-fs, expo-file-system and rn-fetch-blob, all give me the same…

Radjapa
- 86
- 5
1
vote
0 answers
File system image in react-native-webview source
I use expo-file-system to download files to the local app directory for offline usage. The path might look something like…

marvler
- 54
- 5
1
vote
2 answers
React Native Expo - Does document directory path get modified on App update?
In my application i save a batch of images locally using the Expo FileSystem and storing their fully uri in redux (file://......). I transform the image to base64 and store this in the document directory, as a file, whenever an image is taken. When…

jorho
- 49
- 2
- 7
1
vote
1 answer
Save CSV as local file with Expo File System
I am using supabase as my storage, and i am making a request to get the response as CSV, as follows:
const exportColetasAsCSV = async ( IDs: number[] ) => {
const {data, error} = await supabase
.from('coletas')
.select()
.in('id', IDs)
…

Narciso Ferreira
- 45
- 4
0
votes
0 answers
expo-file-system crash on IOS Simulator
I have a code that will save a QR generated image (base64) to device folder using expo-file-system
const saveQrCode = async () => {
if (QRref) {
QRref.toDataURL(async (data) => {
try {
// Check folder directory
…

etcN00b
- 36
- 1
- 6
0
votes
0 answers
Upload Image from Expo to NestJS Server as Binary
I have an Expo Client trying to upload images from iOS and Android to a NestJS Server.
I get a 400 error that File is required, and when I try to log the body on the server it's empty.
My client code is
try {
const token = await…

JamesRichardson
- 131
- 2
- 13
0
votes
0 answers
How do I save a file to the Dwonload folder on my Android device using Expo?
my solution:
const permissions = await FileSystem.StorageAccessFramework.requestDirectoryPermissionsAsync()
if (permissions.granted) {
await…

Oleg
- 1
0
votes
1 answer
Fetching PDF data from API and displaying as PDF in a device's default browser using React Native Expo
I have a React Native project created using Expo where I need to make an API call to get a PDF document and display it in the default web browser of my device. The API call works without any issues in the other applications where it is utilized and…

jlewis
- 3
- 3
0
votes
0 answers
Expo-file-system copyAsync and makeDirectoryAsync methods fail after app has been backgrounded and returned to foreground
I'm building a react native expo app that uses expo camera to take short videos and uses expo-av to replay them for the user.
When I first open the app it works fine, but when I background the app and then reopen it (bring it back to the foreground)…
0
votes
0 answers
Issue reading file with FileSystem.readAsStringAsync
I'm trying to read from a file at a certain position for a certain length.
The code reads the first few chunks (varies each time) but getFileOrNull sometimes returns errors such as -1410303 or -894643 I'm not sure what these error numbers mean.…

Dean Van Greunen
- 5,060
- 2
- 14
- 28
0
votes
1 answer
Share a screenshot and a text message (or a link), using react-native and expo
I'm trying to have a share button, that would take a screenshot of the current place in the app, and share it to social platforms along with some text or a link.
I've tried using expo-sharing, react-native-view-shot, and expo-file-system, and…

DanielG
- 11
- 2
0
votes
0 answers
why am I getting "Possible Unhandled Promise Rejection" error when using expo-file-system to download videos
I am trying to download a video using expo-file-system. It used to work sometimes, but sometimes gave me this error. Now I changed some stuff (I don't remember exactly what) and now I'm getting the error constantly.
const result = await…

giji676
- 55
- 1
- 7
0
votes
0 answers
Expo: How to create a file in app's internal/private folder
I have explored expo FileSystem APIs but it doesn't give any option to store files on app's internal folders.
All the files saved using createFileAsync API with Document dir are showing up on user's device file manager app.
Is there any way to do it…

Praful Kadam
- 372
- 6
- 22