Skip to content

[feature request] View file before saving #39

Open

Description

@marcusx2

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.

Activity

  1. yasirkula commented on Mar 30, 2023

    @yasirkula
    Owner

    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 :)

  2. marcusx2 commented on Mar 31, 2023

    @marcusx2
    Author

    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).

  3. yasirkula commented on Mar 31, 2023

    @yasirkula
    Owner

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions