Vin*_*ent 1 google-apps-script
我正在尝试获取文件类型。
当我使用 getFileType() 函数时,我只得到“其他”,如下所述:https : //developers.google.com/apps-script/class_docslist_filetype
那么我怎么知道类型呢?(pdf,jpg)
您可以获得 MIME 类型,它可以让您更好地了解 Google Doc 格式。这是示例
DriveApp.getFileById(id).getMimeType()
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
5221 次 |
最近记录: |