هل تعلم؟dyk.si

منطقة رفع الملفات File Upload (Dropzone)

مربع منقّط تسحب إليه ملفاتك أو تنقر عليه لتختارها من جهازك.

يُعرف أيضاً باسم: Dropzone

<input type="file"> + drop events

متى تستخدمه

لرفع مخططات أو صور أو مستندات.

خطأ شائع

لا تُخفِ الأنواع والحجم المسموح بهما.

إمكانية الوصول

Keep a real button inside; dragging is impossible for many users.

اسمه في الكود

HTML/CSS<input type="file"> + drop events
Reactreact-dropzone
Jetpack ComposerememberLauncherForActivityResult(GetContent)
SwiftUI.fileImporter / PhotosPicker

برومبت جاهز لوكيل البرمجة

Add a File Upload (Dropzone) to this screen. What it is: A dashed area where you drop files or click to choose them from your device. Implement with: <input type="file"> + drop events (HTML/CSS). Accessibility: Keep a real button inside; dragging is impossible for many users. When to use it: For uploading drawings, photos or documents. Avoid: Don’t hide the allowed types and size. Reuse the project's existing design tokens, spacing and component conventions.

أو ركّب صفحة كاملة من هذا العنصر وغيره →

البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.