संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Mimeटाइप
एक एनोटेशन, जो स्ट्रिंग को साफ़ तौर पर टाइप किए बिना, MIME-टाइप एलान का ऐक्सेस देता है. जिन तरीकों में MIME टाइप को स्ट्रिंग (उदाहरण के लिए,
'image/png') के तौर पर रेंडर करने की उम्मीद होती है वे नीचे दी गई किसी भी वैल्यू को स्वीकार करते हैं. हालांकि, ऐसा तब ही होता है, जब तरीका, MIME टाइप के साथ काम करता हो.
// Use MimeType enum to log the name of every Google Doc in the user's Drive.constdocs=DriveApp.getFilesByType(MimeType.GOOGLE_DOCS);while(docs.hasNext()){constdoc=docs.next();Logger.log(doc.getName());}// Use plain string to log the size of every PNG in the user's Drive.constpngs=DriveApp.getFilesByType('image/png');while(pngs.hasNext()){constpng=pngs.next();Logger.log(png.getSize());}
प्रॉपर्टी
प्रॉपर्टी
टाइप
ब्यौरा
GOOGLE_APPS_SCRIPT
Enum
Google Apps Script प्रोजेक्ट के लिए MIME टाइप की जानकारी.
GOOGLE_DRAWINGS
Enum
Google Drawings फ़ाइल के लिए MIME टाइप का रेप्रज़ेंटेशन.
GOOGLE_DOCS
Enum
Google Docs फ़ाइल के लिए MIME टाइप का उदाहरण.
GOOGLE_FORMS
Enum
Google Forms फ़ाइल के लिए MIME टाइप का रेप्रज़ेंटेशन.
GOOGLE_SHEETS
Enum
Google Sheets फ़ाइल के लिए MIME टाइप का रेप्रज़ेंटेशन.
GOOGLE_SITES
Enum
Google Sites फ़ाइल के लिए MIME टाइप का उदाहरण.
GOOGLE_SLIDES
Enum
Google Slides फ़ाइल के लिए MIME टाइप की जानकारी.
FOLDER
Enum
Google Drive फ़ोल्डर के लिए MIME टाइप की जानकारी.
SHORTCUT
Enum
Google Drive के शॉर्टकट के लिए MIME टाइप का उदाहरण.
BMP
Enum
BMP इमेज फ़ाइल (आम तौर पर .bmp) के लिए MIME टाइप का रेप्रज़ेंटेशन.
GIF
Enum
GIF इमेज फ़ाइल (आम तौर पर .gif) के लिए MIME टाइप का रेप्रज़ेंटेशन.
JPEG
Enum
JPEG इमेज फ़ाइल (आम तौर पर .jpg) के लिए MIME टाइप का रेप्रज़ेंटेशन.
PNG
Enum
PNG इमेज फ़ाइल (आम तौर पर .png) के लिए MIME टाइप का रेप्रज़ेंटेशन.
SVG
Enum
आम तौर पर .svg फ़ाइल फ़ॉर्मैट वाली SVG इमेज फ़ाइल के लिए MIME टाइप का रेप्रज़ेंटेशन.
PDF
Enum
PDF फ़ाइल (आम तौर पर .pdf) के लिए MIME टाइप का रेप्रज़ेंटेशन.
CSS
Enum
सीएसएस टेक्स्ट फ़ाइल (आम तौर पर .css) के लिए MIME टाइप का रेप्रज़ेंटेशन.
CSV
Enum
CSV टेक्स्ट फ़ाइल (आम तौर पर .csv) के लिए MIME टाइप का रेप्रज़ेंटेशन.
HTML
Enum
एचटीएमएल टेक्स्ट फ़ाइल (आम तौर पर .html) के लिए MIME टाइप का रेप्रज़ेंटेशन.
JAVASCRIPT
Enum
JavaScript टेक्स्ट फ़ाइल (आम तौर पर .js) के लिए MIME टाइप का रेप्रज़ेंटेशन.
PLAIN_TEXT
Enum
आम तौर पर .txt फ़ाइल के लिए MIME टाइप का रेप्रज़ेंटेशन.
RTF
Enum
रिच टेक्स्ट फ़ाइल (आम तौर पर .rtf) के लिए MIME टाइप का रेप्रज़ेंटेशन.
OPENDOCUMENT_GRAPHICS
Enum
OpenDocument ग्राफ़िक्स फ़ाइल (आम तौर पर .odg) के लिए MIME टाइप का रेप्रज़ेंटेशन.
OPENDOCUMENT_PRESENTATION
Enum
OpenDocument प्रज़ेंटेशन फ़ाइल (आम तौर पर .odp) के लिए MIME टाइप का रेप्रज़ेंटेशन.
OPENDOCUMENT_SPREADSHEET
Enum
OpenDocument स्प्रेडशीट फ़ाइल (आम तौर पर .ods) के लिए MIME टाइप का रेप्रज़ेंटेशन.
OPENDOCUMENT_TEXT
Enum
OpenDocument वर्ड प्रोसेसिंग फ़ाइल (आम तौर पर .odt) के लिए MIME टाइप का रेप्रज़ेंटेशन.
MICROSOFT_EXCEL
Enum
Microsoft Excel स्प्रेडशीट फ़ाइल (आम तौर पर .xlsx) के लिए MIME टाइप का रेप्रज़ेंटेशन.
MICROSOFT_EXCEL_LEGACY
Enum
Microsoft Excel की लेगसी फ़ाइल (आम तौर पर .xls) के लिए MIME टाइप का रेप्रज़ेंटेशन.
MICROSOFT_POWERPOINT
Enum
Microsoft PowerPoint प्रज़ेंटेशन फ़ाइल (आम तौर पर .pptx) के लिए MIME टाइप का रेप्रज़ेंटेशन.
MICROSOFT_POWERPOINT_LEGACY
Enum
Microsoft PowerPoint की लेगसी फ़ाइल (आम तौर पर .ppt) के लिए MIME टाइप का रेप्रज़ेंटेशन.
MICROSOFT_WORD
Enum
Microsoft Word दस्तावेज़ फ़ाइल (आम तौर पर .docx) के लिए MIME टाइप का रेप्रज़ेंटेशन.
MICROSOFT_WORD_LEGACY
Enum
Microsoft Word की लेगसी फ़ाइल (आम तौर पर .doc) के लिए MIME टाइप का रेप्रज़ेंटेशन.
ZIP
Enum
ZIP फ़ॉर्मैट वाली संग्रह फ़ाइल (आम तौर पर .zip) के लिए MIME टाइप का रेप्रज़ेंटेशन.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eMimeType\u003c/code\u003e is an enumeration providing access to MIME-type declarations without manually typing strings, offering a more convenient way to specify file types in Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eMethods accepting MIME types as strings (e.g., \u003ccode\u003e'image/png'\u003c/code\u003e) also accept \u003ccode\u003eMimeType\u003c/code\u003e enum values if the underlying MIME type is supported.\u003c/p\u003e\n"],["\u003cp\u003eThis enumeration covers a wide range of file types, including Google Workspace files, common image and document formats, and Microsoft Office file types.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided property table for a comprehensive list of supported MIME types and their corresponding \u003ccode\u003eMimeType\u003c/code\u003e enum values.\u003c/p\u003e\n"]]],[],null,["# Enum MimeType\n\nMimeType\n\nAn enumeration that provides access to MIME-type declarations without typing the strings\nexplicitly. Methods that expect a MIME type rendered as a string (for example, `\n'image/png'`) also accept any of the values below, so long as the method supports the\nunderlying MIME type.\n\n```javascript\n// Use MimeType enum to log the name of every Google Doc in the user's Drive.\nconst docs = DriveApp.getFilesByType(MimeType.GOOGLE_DOCS);\nwhile (docs.hasNext()) {\n const doc = docs.next();\n Logger.log(doc.getName());\n}\n\n// Use plain string to log the size of every PNG in the user's Drive.\nconst pngs = DriveApp.getFilesByType('image/png');\nwhile (pngs.hasNext()) {\n const png = pngs.next();\n Logger.log(png.getSize());\n}\n``` \n\n### Properties\n\n| Property | Type | Description |\n|-------------------------------|--------|---------------------------------------------------------------------------------------------|\n| `GOOGLE_APPS_SCRIPT` | `Enum` | Representation of MIME type for a Google Apps Script project. |\n| `GOOGLE_DRAWINGS` | `Enum` | Representation of MIME type for a Google Drawings file. |\n| `GOOGLE_DOCS` | `Enum` | Representation of MIME type for a Google Docs file. |\n| `GOOGLE_FORMS` | `Enum` | Representation of MIME type for a Google Forms file. |\n| `GOOGLE_SHEETS` | `Enum` | Representation of MIME type for a Google Sheets file. |\n| `GOOGLE_SITES` | `Enum` | Representation of MIME type for a Google Sites file. |\n| `GOOGLE_SLIDES` | `Enum` | Representation of MIME type for a Google Slides file. |\n| `FOLDER` | `Enum` | Representation of MIME type for a Google Drive folder. |\n| `SHORTCUT` | `Enum` | Representation of MIME type for a Google Drive shortcut. |\n| `BMP` | `Enum` | Representation of MIME type for a BMP image file (typically .bmp). |\n| `GIF` | `Enum` | Representation of MIME type for a GIF image file (typically .gif). |\n| `JPEG` | `Enum` | Representation of MIME type for a JPEG image file (typically .jpg). |\n| `PNG` | `Enum` | Representation of MIME type for a PNG image file (typically .png). |\n| `SVG` | `Enum` | Representation of MIME type for an SVG image file (typically .svg). |\n| `PDF` | `Enum` | Representation of MIME type for a PDF file (typically .pdf). |\n| `CSS` | `Enum` | Representation of MIME type for a CSS text file (typically .css). |\n| `CSV` | `Enum` | Representation of MIME type for a CSV text file (typically .csv). |\n| `HTML` | `Enum` | Representation of MIME type for an HTML text file (typically .html). |\n| `JAVASCRIPT` | `Enum` | Representation of MIME type for a JavaScript text file (typically .js). |\n| `PLAIN_TEXT` | `Enum` | Representation of MIME type for a plain text file (typically .txt). |\n| `RTF` | `Enum` | Representation of MIME type for a rich text file (typically .rtf). |\n| `OPENDOCUMENT_GRAPHICS` | `Enum` | Representation of MIME type for an OpenDocument graphics file (typically .odg). |\n| `OPENDOCUMENT_PRESENTATION` | `Enum` | Representation of MIME type for an OpenDocument presentation file (typically .odp). |\n| `OPENDOCUMENT_SPREADSHEET` | `Enum` | Representation of MIME type for an OpenDocument spreadsheet file (typically .ods). |\n| `OPENDOCUMENT_TEXT` | `Enum` | Representation of MIME type for an OpenDocument word-processing file (typically .odt). |\n| `MICROSOFT_EXCEL` | `Enum` | Representation of MIME type for a Microsoft Excel spreadsheet file (typically .xlsx). |\n| `MICROSOFT_EXCEL_LEGACY` | `Enum` | Representation of MIME type for a Microsoft Excel legacy file (typically .xls). |\n| `MICROSOFT_POWERPOINT` | `Enum` | Representation of MIME type for a Microsoft PowerPoint presentation file (typically .pptx). |\n| `MICROSOFT_POWERPOINT_LEGACY` | `Enum` | Representation of MIME type for a Microsoft PowerPoint legacy file (typically .ppt). |\n| `MICROSOFT_WORD` | `Enum` | Representation of MIME type for a Microsoft Word document file (typically .docx). |\n| `MICROSOFT_WORD_LEGACY` | `Enum` | Representation of MIME type for a Microsoft Word legacy file (typically .doc). |\n| `ZIP` | `Enum` | Representation of MIME type for a ZIP archive file (typically .zip). |"]]