LoginSignup
0
0

More than 5 years have passed since last update.

fopen: failed to open stream: Is a directory

Posted at

環境

  • Amazon Linux 2
  • PHP 7.2.5
  • Apache/2.4.33

発生状況

ブラウザからサーバにファイルをアップロードした際に発生

今回の発生原因

アップロード対象データが、
1. POSTデータに許可される最大サイズを超えていたため
2. アップロード可能なファイルの最大サイズを超えていたため

今回の解決策

php.iniを以下を満たすよう修正
memory_limit > post_max_size > upload_max_filesize > アップロード対象データのサイズ

参考

その他

エラーが解消されたら是非いいねお願いします

0
0
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
0
0