الانتقال إلى المحتوى
الأدوات

Max Upload Size Fixer

Raise the upload limit — and get all three values consistent

يعمل في متصفحك. لا يُرفع أي شيء.

Target
Where can you edit files?

Hosts differ in what they let you touch. Generate the format you can actually use — and if the first one silently does nothing, that usually means your host overrides it, so try the next.

Resulting upload limit

128 MB

settings

wp-config.php can raise WordPress's own memory limit, but it cannot raise PHP's upload_max_filesize — that is a PHP directive, not a WordPress one. If your host locks PHP settings, no amount of wp-config editing will change the upload cap, and you will have to ask them.

عن Max Upload Size Fixer

WordPress upload limits are set in three places that must agree: upload_max_filesize, post_max_size, and memory_limit. Set your target size and this emits all three, correctly ordered, for php.ini, .htaccess, and wp-config.php.

FAQ

أسئلة

رفعت upload_max_filesize ولم يتغيّر شيء. لماذا؟

لأن WordPress يستخدم الأصغر بين ثلاث قيم: upload_max_filesize و post_max_size و memory_limit. رفع واحدة بينما تبقى أخرى منخفضة لا يغيّر شيئًا. ويجب أن يكون post_max_size أكبر من upload_max_filesize، لأن جسم الطلب يحمل الملف بالإضافة إلى النموذج المحيط به.

هل يمكن لـ wp-config.php رفع حد الرفع؟

جزئيًا فقط، وهذا يوقع كثيرين في الخطأ. يمكن لـ wp-config.php رفع حد ذاكرة WordPress، لكن upload_max_filesize هو توجيه في PHP عادةً ما يكون PHP قد انتهى من قراءته قبل أن يُحمّل WordPress. إذا كانت استضافتك تقفل إعدادات PHP، فلن يغيّر أي قدر من تعديل wp-config الحدّ.

استضافتي لا تسمح لي بتعديل php.ini. ماذا الآن؟

جرّب ملف .user.ini في الجذر الرئيسي — كثير من الاستضافات المشتركة تقرأه. إذا فشل ذلك أيضًا، فالحدّ مفروض فوق حسابك ولا يمكن تغييره إلا من استضافتك. اطلب منهم؛ فعادةً ما تكون تذكرة من سطر واحد.