Skip to content

The pick command for v8 File Picker does not include a file's MIME-Type #92

@SantiagoUriarte

Description

@SantiagoUriarte
   const options = {
      sdk: '8.0',
      entry: {
        oneDrive: {},
      },
      authentication: {},
      messaging: {
        origin: window.location.origin,
        channelId: channelId,
      },
      typesAndSources: {
        mode: 'files',
        pivots: {
          oneDrive: true,
          recent: true,
        },
      },
      selection: {
        mode: 'multiple',
      },
    };
    const queryString = new URLSearchParams({
      filePicker: JSON.stringify(options),
    });

    const url = `https://onedrive.live.com/picker?${queryString}`;

Using these options the return does not include important information such as MIME-Type. This was a feature that was supported in 7.2 via advanced query params like
select=file

Am I missing something or is there no way to get the MIME-Type of the picked file without having to download it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions