In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. Subsequent GET requests include the read-only fileExtension property populated with the extension originally specified in the title property. For example, an operation to insert a JPEG file should specify something like "title": "cat.jpg" in the metadata. The literal */* is only used to indicate that any valid MIME type can be uploaded.įor more information on uploading files, see Upload file data.Īpps creating shortcuts with files.insert must specify the MIME type application/.Īpps should specify a file extension in the title property when inserting files with the API. Note: Specify a valid MIME type, rather than the literal */* value. This method supports an /upload URI and accepts uploaded media with the following characteristics:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |