Why is it required to have 'application/vnd.google-apps.drive-sdk' as the mimetype when creating a shortcut in drive (see https://developers.google.com/drive/web/integrate-create)?
Wouldn't any customized mime-type work ?
Why is it required to have 'application/vnd.google-apps.drive-sdk' as the mimetype when creating a shortcut in drive (see https://developers.google.com/drive/web/integrate-create)?
Wouldn't any customized mime-type work ?
A 'shortcut' in Drive using that MIME type is a specific construct that lets Drive know that the real content is actually stored somewhere other than Drive. Note: It isn't exactly equivalent to a generic shortcut you might be use to on an OS like Windows.
When you open a item with the application/vnd.google-apps.drive-sdk MIME type set, Drive knows that it should open the Open URL that was registered by the Drive application that created the shortcut and pass it the necessary state information to correctly handle the request.
Using MIME type to direct this behavior makes sense for several reasons.
application/vnd.google-apps.drive-sdk lets you know not to expect any content. Setting a different MIME type, would more than likely be lying.