Enum MimeType
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
মাইম টাইপ একটি গণনা যা স্পষ্টভাবে স্ট্রিং টাইপ না করেই MIME- প্রকারের ঘোষণাগুলিতে অ্যাক্সেস প্রদান করে। যে পদ্ধতিগুলি স্ট্রিং হিসাবে রেন্ডার করা একটি MIME প্রকারের আশা করে (উদাহরণস্বরূপ, 'image/png'
) সেগুলিও নীচের যে কোনও মান গ্রহণ করে, যতক্ষণ না পদ্ধতিটি অন্তর্নিহিত MIME প্রকারকে সমর্থন করে।
// Use MimeType enum to log the name of every Google Doc in the user's Drive.
const docs = DriveApp.getFilesByType(MimeType.GOOGLE_DOCS);
while (docs.hasNext()) {
const doc = docs.next();
Logger.log(doc.getName());
}
// Use plain string to log the size of every PNG in the user's Drive.
const pngs = DriveApp.getFilesByType('image/png');
while (pngs.hasNext()) {
const png = pngs.next();
Logger.log(png.getSize());
}
বৈশিষ্ট্য
সম্পত্তি | টাইপ | বর্ণনা |
---|
GOOGLE_APPS_SCRIPT | Enum | একটি Google Apps স্ক্রিপ্ট প্রকল্পের জন্য MIME প্রকারের প্রতিনিধিত্ব৷ |
GOOGLE_DRAWINGS | Enum | একটি Google অঙ্কন ফাইলের জন্য MIME প্রকারের উপস্থাপনা৷ |
GOOGLE_DOCS | Enum | একটি Google ডক্স ফাইলের জন্য MIME প্রকারের উপস্থাপনা৷ |
GOOGLE_FORMS | Enum | একটি Google ফর্ম ফাইলের জন্য MIME প্রকারের উপস্থাপনা৷ |
GOOGLE_SHEETS | Enum | একটি Google পত্রক ফাইলের জন্য MIME প্রকারের উপস্থাপনা৷ |
GOOGLE_SITES | Enum | একটি Google সাইট ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব। |
GOOGLE_SLIDES | Enum | একটি Google স্লাইড ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব। |
FOLDER | Enum | একটি Google ড্রাইভ ফোল্ডারের জন্য MIME প্রকারের প্রতিনিধিত্ব৷ |
SHORTCUT | Enum | একটি Google ড্রাইভ শর্টকাটের জন্য MIME প্রকারের প্রতিনিধিত্ব৷ |
BMP | Enum | একটি BMP ইমেজ ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .bmp)। |
GIF | Enum | একটি GIF ইমেজ ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .gif)। |
JPEG | Enum | একটি JPEG ইমেজ ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .jpg)। |
PNG | Enum | একটি PNG ইমেজ ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .png)। |
SVG | Enum | একটি SVG ইমেজ ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .svg)। |
PDF | Enum | একটি পিডিএফ ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .pdf)। |
CSS | Enum | একটি CSS টেক্সট ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .css)। |
CSV | Enum | একটি CSV পাঠ্য ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .csv)। |
HTML | Enum | একটি HTML টেক্সট ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .html)। |
JAVASCRIPT | Enum | একটি জাভাস্ক্রিপ্ট টেক্সট ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .js)। |
PLAIN_TEXT | Enum | একটি প্লেইন টেক্সট ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .txt)। |
RTF | Enum | একটি সমৃদ্ধ পাঠ্য ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .rtf)। |
OPENDOCUMENT_GRAPHICS | Enum | একটি OpenDocument গ্রাফিক্স ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .odg)। |
OPENDOCUMENT_PRESENTATION | Enum | একটি OpenDocument উপস্থাপনা ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .odp)। |
OPENDOCUMENT_SPREADSHEET | Enum | একটি OpenDocument স্প্রেডশীট ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .ods)। |
OPENDOCUMENT_TEXT | Enum | একটি OpenDocument ওয়ার্ড-প্রসেসিং ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .odt)। |
MICROSOFT_EXCEL | Enum | একটি Microsoft Excel স্প্রেডশীট ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .xlsx)। |
MICROSOFT_EXCEL_LEGACY | Enum | মাইক্রোসফ্ট এক্সেল লিগ্যাসি ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .xls)। |
MICROSOFT_POWERPOINT | Enum | একটি মাইক্রোসফ্ট পাওয়ারপয়েন্ট উপস্থাপনা ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .pptx)। |
MICROSOFT_POWERPOINT_LEGACY | Enum | মাইক্রোসফ্ট পাওয়ারপয়েন্ট লিগ্যাসি ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .ppt)। |
MICROSOFT_WORD | Enum | একটি Microsoft Word নথি ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .docx)। |
MICROSOFT_WORD_LEGACY | Enum | মাইক্রোসফ্ট ওয়ার্ড লিগ্যাসি ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .doc)। |
ZIP | Enum | একটি ZIP সংরক্ষণাগার ফাইলের জন্য MIME প্রকারের প্রতিনিধিত্ব (সাধারণত .zip)। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 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). |"]]