We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d49875 commit 4e1c34dCopy full SHA for 4e1c34d
package/expo-package/src/index.js
@@ -123,7 +123,7 @@ registerNativeHandlers({
123
},
124
saveFile: async ({ fileName, fromUrl }) => {
125
try {
126
- const path = FileSystem.documentDirectory + fileName;
+ const path = FileSystem.cacheDirectory + encodeURIComponent(fileName);
127
const downloadedImage = await FileSystem.downloadAsync(fromUrl, path);
128
return downloadedImage.uri;
129
} catch (error) {
0 commit comments