Home Backend Development PHP Tutorial PHP 下传文件的 最大限制,求解!

PHP 下传文件的 最大限制,求解!

Jun 13, 2016 pm 01:24 PM
filesize max

PHP 上传文件的 最大限制,求解!!!
请问一下 ,我在 php的 配置中调整了 上传文件最大限制!~!!! 如下~~~

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir ="E:\appserv\www\tem"

; Maximum allowed size for uploaded files.
upload_max_filesize = 100M

;;;;;;;;;;;;;;;;;;

可是 一直只能上传 2M 一下的文件!! 这是为什么??

提醒, 我把 100M 改为了 100000000 与 100M ,
并且每次修改后,我都重新启动服务器了, 可是为什么 就是 不能上传 大文件???

求解!!!!

------解决方案--------------------
报错了没? post_max_size 也改大点。
------解决方案--------------------
在php.ini里面查看如下行:
upload_max_filesize = 100M post_max_size = 100M memory_limit = 40M
把这个2个改成一样,试试看~!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP Warning: filesize() [function.filesize]: stat failed solution PHP Warning: filesize() [function.filesize]: stat failed solution Jun 22, 2023 pm 11:54 PM

PHP Warning: filesize() [function.filesize]: stat failed solution

iPhone 15 Pro Max vs iPhone 14 Pro Max: What are the comparisons and differences between them? iPhone 15 Pro Max vs iPhone 14 Pro Max: What are the comparisons and differences between them? Sep 19, 2023 pm 08:29 PM

iPhone 15 Pro Max vs iPhone 14 Pro Max: What are the comparisons and differences between them?

How to use HEIF Max (48 MP) and optimize storage on iPhone 14 Pro How to use HEIF Max (48 MP) and optimize storage on iPhone 14 Pro Sep 21, 2023 pm 02:13 PM

How to use HEIF Max (48 MP) and optimize storage on iPhone 14 Pro

Battery life comparison of all iPhone 15 series: iPhone 15 Plus beats 15 Pro Max Battery life comparison of all iPhone 15 series: iPhone 15 Plus beats 15 Pro Max Sep 30, 2023 pm 11:09 PM

Battery life comparison of all iPhone 15 series: iPhone 15 Plus beats 15 Pro Max

How to get max value from stream in java8 How to get max value from stream in java8 May 14, 2023 pm 03:43 PM

How to get max value from stream in java8

Samsung S25 Ultra details exposed: same width as iPhone 16 Pro Max, but with a larger screen Samsung S25 Ultra details exposed: same width as iPhone 16 Pro Max, but with a larger screen Aug 23, 2024 pm 09:33 PM

Samsung S25 Ultra details exposed: same width as iPhone 16 Pro Max, but with a larger screen

PHP function introduction: is_file() function PHP function introduction: is_file() function Nov 04, 2023 am 09:11 AM

PHP function introduction: is_file() function

How to compare the size of two numbers using the Math.max() method in Java? How to compare the size of two numbers using the Math.max() method in Java? Nov 18, 2023 pm 02:29 PM

How to compare the size of two numbers using the Math.max() method in Java?

See all articles