You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Android][Google Drive] Download file from google drive then cache in local storage (#264)
* get real file path
* update variable
* add property to get file path from uri
* fix bug could not get file from download folder
* change getPath to usePath
* Get data from google drive app
* implement copyTo
* update README
* update index.d.ts
* update code
Co-authored-by: Tuan Luong <tuanluong@Tuans-MacBook-Pro.local>
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,9 +51,9 @@ The type or types of documents to allow selection of. May be an array of types a
51
51
52
52
Defaults to `import`. If `mode` is set to `import` the document picker imports the file from outside to inside the sandbox, otherwise if `mode` is set to `open` the document picker opens the file right in place.
##### [iOS and Android only]`copyTo`:`"cachesDirectory" | "documentDirectory"`:
55
55
56
-
If specified, the picked file is copied to `NSCachesDirectory` / `NSDocumentDirectory`directory. The uri of the copy will be available in result's `fileCopyUri`. If copying the file fails (eg. due to lack of space), `fileCopyUri` will be the same as `uri`, and more details about the error will be available in `copyError` field in the result.
56
+
If specified, the picked file is copied to `NSCachesDirectory` / `NSDocumentDirectory`(iOS) or `getCacheDir` / `getFilesDir` (Android). The uri of the copy will be available in result's `fileCopyUri`. If copying the file fails (eg. due to lack of space), `fileCopyUri` will be the same as `uri`, and more details about the error will be available in `copyError` field in the result.
57
57
58
58
This should help if you need to work with the file(s) later on, because by default, [the picked documents are temporary files. They remain available only until your application terminates](https://developer.apple.com/documentation/uikit/uidocumentpickerdelegate/2902364-documentpicker). This may impact performance for large files, so keep this in mind if you expect users to pick particularly large files and your app does not need immediate read access.
59
59
@@ -84,7 +84,7 @@ The URI representing the document picked by the user. _On iOS this will be a `fi
84
84
85
85
##### `fileCopyUri`:
86
86
87
-
Same as `uri`, but has special meaning on iOS, if `copyTo` option is specified.
87
+
Same as `uri`, but has special meaning if `copyTo` option is specified.
0 commit comments