EC-CUBE / EC-CUBE/ec-cube

.htaccess での upload_max_filesize と post_max_size の設定について

Open
#4,184 0 comments 0 reactions 0 assignees View on GitHub
improvement Status: discussion
Dominant language
PHP
Stars
788
Forks
719
Avg merge
4d 4h
Merged PRs (30d)
39

Description

## 概要(Overview)

現状 .htaccess で upload_max_filesize の設定をしている。
https://github.com/EC-CUBE/ec-cube/blob/eec6e480662c98ebb5755aa73da7d74d0d3f7d04/.htaccess#L22-L25

現状だと2個の課題がある。
- 環境の設定を上書きしてしまう
- post_max_size のデフォルトが8Mなので upload_max_filesize の指定だけでは意味がない

## 期待する内容(Expect) or 要望 (Requirement)

対応方針の検討
案としては、 upload_max_filesize と post_max_size の設定は環境に任せてしまって、 .htaccess では指定しないようにする

## 再現手順(Procedure)

### 環境 (environment)
+ EC-CUBE: 4.0.2
+ PHP: 7.x.x
+ DB:
- PostgreSQL x.x.x
- MySQL x.x.x

## 関連情報 (Ref)

https://github.com/EC-CUBE/ec-cube/pull/3851
https://github.com/EC-CUBE/ec-cube/pull/4179

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.