LoginSignup
11
11

More than 5 years have passed since last update.

ファイルのアップロード数、最大サイズの設定

Posted at

php.iniで設定する

/etc/php.ini

;スクリプトが確保できる最大メモリの指定
memory_limit = 128M

;POSTデータに許可される最大サイズ
;ファイルアップロードにも影響する
post_max_size = 8M

;アップロードされるファイルの最大サイズ
upload_max_filesize = 2M

;同時にアップロードできるファイルの最大数
max_file_uploads = 20

memory_limit > post_max_sizeの必要があります。

参考

php.ini ディレクティブに関する説明

11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11