Questions tagged [expo-file-system]
22 questions
0
votes
0 answers
Expo React expo-file-system copyAsync not working as expected - media file copied as a directory
I'm struggling with as strange FileSystem.copyAsync behaviour. In RelocatingOption, 'from' is a media file (mp3) with SAF format and 'to' is supposed to be a same name file in FileSystem.documentDirectory.
The unexpected behaviour is that the file…

marfing
- 71
- 5
0
votes
1 answer
Save image from expo assets to user device but first let the user select the target folder
I have researched a lot , even used ChatGTP3 solutions ( which by the way are cool ) but nothing works .
So i will explain my case ( i am targeting android ) :
Inside the local expo assets i have 30 images
i want to allow the user to download…

GOXR3PLUS
- 6,877
- 9
- 44
- 93
0
votes
2 answers
React Native expo: Reading an Image file from android
I am using this line to read the image in base64 :
const base64_image = await FileSystem.readAsStringAsync(image, { encoding: 'base64' })
The image variable is the uri that I have got from the ImagePicker library. This is the code snippet for…

HousamKak
- 23
- 3
0
votes
0 answers
Expo | React native - Can't open local url file:// using Expo WebBrowser or Linking
I am downloading a file using axios and using:
await FileSystem.writeAsStringAsync(fileUri, stream, {
encoding: FileSystem.EncodingType.Base64
})
to write it to the file system.
When I use Sharing.shareAsync(fileUri)
The sharing…
0
votes
1 answer
[Error: Could not get albums: need WRITE_EXTERNAL_STORAGE permission.]
I am trying to move a file from folder to folder in react native expo with expo_file_system and I get this error:
[Error: Failed to get albums: You need WRITE_EXTERNAL_STORAGE permission.]
app.json:
{
"expo": {
...
"plugins": [
[
…

sasame
- 21
- 4
0
votes
0 answers
how to create folder in android/app/src/main with expo eas?
I'm working on to make android application with react-native and expo.
I'm using library to render some 3d object.
.obj format file need to be in android/app/src/main/assets to use that library.
I can load pictures something like .jpg, .png but…

hhj0988a
- 1
- 2
0
votes
1 answer
Error When Downloading Image Using Expo File System React Native IOS
I want to download the image file from web. This is my code :
import React from 'react'
import * as Sharing from "expo-sharing";
import * as FileSystem from 'expo-file-system';
import * as MediaLibrary from 'expo-media-library';
import {…

Dennis Liu
- 2,268
- 3
- 21
- 43