Documentation on how FileExplorer determines how to open a file.

2 posts, 0 answers
  1. Peter
    Peter avatar
    72 posts
    Member since:
    Mar 2012

    Posted 27 Mar 2014 Link to this post

    We are using the FileExplorer in an internal web site, and using this code to open a file:

      function OnExplorerFileOpen(oExplorer, args) {
          if (!args.get_item().isDirectory()) {
              setTimeout(function () {
                  var oWindowManager = oExplorer.get_windowManager();
                  var previewWindow = oWindowManager.getActiveWindow(); // Gets the current active widow.
                  try {
                      previewWindow.setSize(500, 500);
                  } catch (e) {
              }, 100);   // Some timeout is required in order to allow the window to become active

    How does the FileExplorer determine whether a file opens in a modal or as an attachment?  

  2. Vessy
    Vessy avatar
    2093 posts

    Posted 01 Apr 2014 Link to this post

    Hello Peter,

    This functionality is handled by the browser and it depends on the file type you are about to open. If you would like all files to be recognized as attachments, you can implement a custom generic handler, providing the MIME types for these specific file types. Please, refer this live demo for more details on the subject.

    If you would like to force the direct opening of all file type, though - I am afraid that this cannot be achieved for the moment.


    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Back to Top