Gerald Versluis
3042aef668
Make UWP FilePicker FutureAccessList more robust
2023-07-06 16:46:28 +02:00
James Montemagno
e18d0eae51
Don't require the storage read, isn't needed on Android.
...
Fixed #1961
2022-04-03 10:47:57 +02:00
Dima Dimov
b9ad98bcff
Improving the operation of PresentationControllers ( #1846 )
...
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2022-01-13 02:06:57 +02:00
Matthew Leibowitz
db101137e9
Make sure to require permissions ( #1651 )
...
If the permissions were denied, then throw.
Fixes #1649
2021-01-22 00:09:17 +02:00
Matthew Leibowitz
9b1efd92fc
[iOS] Request the file data from file providers ( #1582 )
...
Fixes #1549
2020-12-12 04:48:18 +02:00
Matthew Leibowitz
add928f57b
Rework the "picker" results to correctly manage files ( #1555 )
...
* Rework the "picker" results to correctly manage lifetime of files and URIs
* Extract magic strings into constants
- Mime types
- Extensions
- Changed property type of ShareMultipleFilesRequest.Files to be a List<T> for consistency
2020-12-02 15:58:07 +02:00
Matthew Leibowitz
ba911949b6
Redirect exceptions from the pickers into the TCS ( #1547 )
...
Exceptions thrown in the callbacks will not reach the end user, and the task may not even return.
2020-12-01 01:16:50 +02:00
BjornVanslembrouck
3908d6a0ab
[Issue 1544] Fix [iOS] FilePicker.PickAsync never returns after picker is dismissed ( #1546 )
...
Attaching a UIAdaptivePresentationControllerDelegate to the documentPicker.PresentationController.Delegate property so we can hook into the DidDismiss() method and fire a cancel action when the user dismisses the picker when swiping down
2020-11-25 11:47:56 +02:00
Dimov Dima
54d1ddbeeb
[Bug][Android] File Picker exception when using third-party file managers ( #1446 )
...
* removed TakePersistableUriPermission
* removed GrantPersistableUriPermission activity flag
2020-11-07 15:24:43 +02:00
Matthew Leibowitz
8aa9ad6ad0
Don't throw if iOS can't pick multiple files ( #1501 )
...
Fixes #1492
2020-11-06 12:55:00 +02:00
Roger Leblanc
95f0009b08
[FilePicker] Add support for selecting PDF files (Issue 1404) ( #1412 )
...
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2020-10-23 00:40:56 +02:00
Matthew Leibowitz
8d4059cef6
Merge the picker result types
2020-08-17 20:39:09 +02:00
Jonathan Dick
1fcb7dc265
Rework android request codes
2020-08-10 10:25:43 -04:00
Jonathan Dick
2f9534956d
Add file types for videos
2020-08-05 15:52:44 -04:00
Jonathan Dick
9bc017dc73
More refactor/rebase fixups
2020-07-22 21:33:51 -04:00
Jonathan Dick
2e04ccd2dd
Merge branch 'develop' into dev/add-media-picker
2020-07-22 21:28:31 -04:00
Jonathan Dick
efce8e5bb4
Improve media picker to work with file picker
2020-07-22 21:21:53 -04:00
Jonathan Dick
1547d6414e
Fix up await usage
2020-07-22 10:49:36 -04:00
Jonathan Dick
a028e21a6e
Clean up tizen file picker code
2020-07-22 10:37:05 -04:00
Kangho Hur
f8045e0b83
[Tizen] Update the FilePicker implementation
2020-07-22 20:13:23 +09:00
Jonathan Dick
ed1281b320
Allow multiple file picking on Tizen
2020-07-21 13:24:34 -04:00
Jonathan Dick
b36203fab5
Refactor iOS file picker impl
2020-07-20 16:05:03 -04:00
Jonathan Dick
5506287979
Fix multiple pick
2020-07-20 15:35:05 -04:00
Jonathan Dick
9d11cb6cf7
More filepicker api refactoring
2020-07-20 15:18:56 -04:00
Jonathan Dick
3bc0007c49
Refactor File picker api
2020-07-20 14:55:22 -04:00
Michael Fink
4f657663ff
fixed passing allowed file types to NSOpenPanel
2020-04-20 13:25:27 +02:00
Michael Fink
f2a730da54
fixed checking return code from RunModal()
2020-04-20 13:24:56 +02:00
Michael Fink
8b28a87ad6
use PickerTitle when set
2020-04-20 13:23:56 +02:00
Michael Fink
a21b247545
renamed file to .macos.cs to get picked up by MacOS build
2020-04-20 12:50:40 +02:00
Michael Fink
887f8aa758
added macOS FilePicker implementation
2020-04-19 18:21:45 +02:00
Michael Fink
f378202e58
use UIDocumentPickerMode.Open on iOS (borrowed from PR #1194 )
...
this is used to get access to the original file instead of a copy in the app's inbox
2020-04-14 19:53:50 +02:00
Michael Fink
e84334d587
fixed multi-file picking on Android when only one file was selected
2020-04-14 19:51:53 +02:00
Michael Fink
7e6237f63d
use MIME type of picked file to complete file extension on Android
2020-04-14 19:50:48 +02:00
Michael Fink
0d24658304
improved Android permission handling
...
use ActionOpenDocument on Android 5.0 and above
try keeping permissions to picked files when a `content://` URI is returned
2020-04-14 19:47:20 +02:00
Jonathan Dick
de3def1b7e
FilePicker picking multiple files ( #1147 )
...
* fixed FilePicker permissions check
* disable warning about obsolete MediaStore constant
* implemented file picking multiple files, for Android, iOS and UWP
2020-03-04 14:33:51 -05:00
Jonathan Dick
1b29924bb5
Fix FilePicker permissions check ( #1137 )
...
* fixed FilePicker permissions check
* disable warning about obsolete MediaStore constant
2020-03-04 14:32:58 -05:00
Jonathan Dick
dc3040a44e
Tizen FilePicker fixes
2020-01-06 11:44:40 -05:00
Jonathan Dick
8a73c58a92
Refactor to use FileBase
2019-12-19 16:57:59 -05:00
Matthew Leibowitz
1188b782e2
Try fixing this...
2019-11-15 22:13:20 +02:00
sung-su.kim
6d3d63fcfe
Add Tizen FilePicker
2019-11-14 16:52:32 +09:00
Matthew Leibowitz
a88482ccf2
Undoing my changes
2019-11-09 00:18:51 +02:00
Matthew Leibowitz
75a553deb9
Trying a few things
...
* not using statics for the TCS
* merging in the IntermediateActivity from #613
* using the FileBase as a the base for result
* trying to support content:// in more places - not sure if this is what we want
2019-11-08 19:50:57 +02:00
Michael Fink
2d9150592e
fixed specifying file types on UWP
2019-11-04 19:41:41 +01:00
Michael Fink
a598840a32
fixed compiling for tizen, watchos and tvos targets
2019-11-04 19:34:37 +01:00
Michael Fink
8a440da5e1
reimplemented specifying file picker file types according to discussions
...
- replaced FilePickerFileTypes with suggested FilePickerFileType implementation for Android, iOS and UWP
- PickOptions is not partial anymore, since it doesn't contain any platform specific implementation
- updated FilePicker Samples ViewModel with custom type picking
2019-11-03 13:03:46 +01:00
Michael Fink
548a3580f2
added type FilePickerFileTypes with some file types and use it in FilePicker sample
2019-11-03 11:25:28 +01:00
Michael Fink
7a3e78f20c
fixed potential NullReferenceException when selecting a file on some Android versions (port of fix from issue: https://github.com/jfversluis/FilePicker-Plugin-for-Xamarin-and-Windows/issues/143 )
2019-11-03 11:25:28 +01:00
Michael Fink
b498c4f09a
changed CompletionSource public field to internal, since only the Android implementation has to share the field
2019-11-03 11:25:27 +01:00
Michael Fink
486861bc80
pass default PickOptions object to PlatformPickFileAsync() when user called PickFileAsync() with default parameter
2019-11-03 11:25:27 +01:00
Michael Fink
46798eb818
removed using Linq in Android implementation, too
2019-11-03 11:25:27 +01:00