نکات کلیدی
- 01By file extension (.pdf، .webp) یا by media type string (application/pdf، image/webp) search کنید.
- 02Entries sourced هستند از IANA media type registry، covering image، video، audio، text، application و font types.
- 03By group filter کنید تا سریع همه MIME types در دستهبندی دادهشده browse کنید.
- 04کاملاً در مرورگر شما اجرا میشود — هیچ queries برای هیچ سرور ارسال نمیشود.
چرا MIME Types برای Web Development مهماند
Content-Type header یک browser یا API client به آن میگوید چه data type آن دریافت میکند. اگر غلط گذاشته شود و PDF به جای previewing download میشود، یک JSON response به عنوان plain text treat شود یا یک image render شدن fail کند. تنظیم صحیح MIME type یک جزئیات کوچک است آن دارای visible user-facing consequences.
Beyond browsers, MIME types control upload form filtering (accept="image/*"), CDN cache policies, email attachment handling, and API response parsing. Having a reliable reference is essential when configuring a web server, writing a file upload handler, or debugging a download that opens in the wrong application.
نحوه Look Up MIME Type
- 01
By extension یا type search کنید
Type کنید یک file extension (pdf، webp، epub) with یا بدون leading dot، یا type کنید یک media type string (application/pdf، image/webp). Results real time filter میشود.
- 02
By group filter کنید اگر لازم باشد
Group button را کلیک کنید — Image، Video، Audio، Text، Application یا Font — تا narrow کنید list یک دستهبندی. مفید زمانیکه شما میخواهید همه font MIME types یا همه video types یک بار ببینید.
- 03
Entry را بخوانید
هر نتیجه canonical IANA-registered MIME type، file extensions که بهطور معمول از آن استفاده میکنند و one-line توضیح format نشان میدهد.
- 04
کپی و استفاده کنید
Click Copy یا manually select MIME type string استفاده کنید یک Content-Type header، یک Accept attribute بر روی HTML input، یک server configuration یا یک API response میں.
زمان استفاده از این Lookup
- 01Configuring nginx یا Apache برای serve صحیح Content-Type برای یک file format جدید.
- 02Writing یک file upload handler که validates MIME type incoming files.
- 03تنظیم accept attribute بر روی HTML file input برای restrict uploadable file types.
- 04صحیح responding از یک API endpoint که returns binary files.
- 05Debugging PDF که downloads تا جای previewing — check تا server ارسال میکند application/pdf.
- 06Finding صحیح MIME type برای modern image formats مانند AVIF یا HEIC.
Sourced از IANA، Runs در مرورگر شما
MIME type database bundled است صفحه یا sourced کنید از IANA media type registry. Searching و filtering happen کاملاً در مرورگر شما — هیچ queries برای هیچ سرور ارسال نمیشود.
برخی extensions map میشوند تا multiple معتبر MIME types. مثلاً .xml maps میشود text/xml و application/xml دونیهما. text/xml استفاده میشود زمانیکه XML human-readable content است؛ application/xml preferred برای data interchange. استفاده کنید whichever مطابقت میدهد چگونه tooling یا client شما file consume میکند. Lookup سطح هر دو بنابراین شما میتوانید choose صحیح یک context شما.
سؤالات متداول MIME Type Lookup
MIME type برای PDF file چیست؟
application/pdf canonical، IANA-registered MIME type برای PDF files است.
چرا extension من میں multiple MIME types نشان میدهد؟
برخی formats دارند multiple registered types — .xml maps به text/xml و application/xml، برای مثال. استفاده کنید یکی که مطابقت میدهد چگونه client یا toolchain شما file consume انتظار میدهد.
تفاوت بین font/woff و application/font-woff چیست؟
font/woff modern IANA-registered type برای WOFF fonts است. application/font-woff یک قدیمیتر، legacy type است هنوز در برخی server configurations seen. Prefer کنید font/woff برای new setups.
کدام MIME type باید من استفاده کنم برای .heic iPhone photos؟
image/heic بیشتر widely accepted type برای HEIC files است (HEIF images استفادهکننده HEVC codec). برخی servers نیز accept میکنند image/heif، آن refers تا broader HEIF container format.
آیا MIME type برای WebAssembly وجود دارد؟
بله — application/wasm official MIME type برای .wasm files است. Web servers باید serve WebAssembly این type با برای browsers آن compile کنند efficiently.