UnityNativeFilePicker
UnityNativeFilePicker copied to clipboard
[feature request] View file before saving
It's nice that I can export a file from Unity with the native file browser. However it would be even greater if I could view the file before saving. Instead of choosing where to save, it would say "open with", and then I choose the app to see the file, then I save. It's currently a little bit cumbersome, because I need to save first, the file browser closes, then I need to navigate on the file browser to find the file, open it, and see what I got.
The standard use case for this plugin IMO is saving a file whose contents are already known by the user (e.g. exporting an FBX or a PDF). I'm not sure previewing those files beforehand would be any helpful to the end users. As I understand it, in your case user is unaware of what they're saving but that should be a rarer use-case. I'd like to stick to the current functionality. A plugin that allows viewing a file's contents using native apps would be useful but that isn't this plugin :)
My use case here is a messaging app with firebase integration, like whatsapp. If a user sends me a video, or an image, it shows a preview in the message, and when you tap on it you can view the file, then choose to save, share, etc. It's not a rare use case, it's basically when the user downloads any file from a remote location, it would be helpful to preview it to decide what to do with it later (share, save, etc).
I still believe that messaging apps like this are uncommon in Unity. It's indeed a valid scenario but similar to how share and export functionalities are separated (you're using another plugin for sharing), the preview and export functionalities should also be separated. I'm not planning to add preview functionality to this plugin but another plugin can be created (if one doesn't exist already) that explicitly focuses on natively previewing files. It has been requested a few times before (via different channels), I might give it a shot at some point.
For reference to myself:
Android: ACTION_VIEW Intent iOS: UIDocumentInteractionController