4 MB のファイル アップロード コントロールを介して画像をアップロードしたところ、アップロードされました。画像データをbase64文字列として取得したWebサービスを介してデータを投稿したい。私のコードはステージングで非常にうまく機能していますが、ライブサーバーでスクリプトを実行しようとしても機能しません。画像は、サイズが 188 kb の png 形式の 768x80 ピクセルの画像であり、次のエラーが返されます。
Request Entity Too Large
The requested resource /web/index.php/webservices/uploadpicture
does not allow request data with POST requests, or the amount of data provided in
the request exceeds the capacity limit.
Apache Server at www.mysite.com Port 80
ホスティングサーバーは最高です。Apache と php.ini の構成を変更する権利はありません。から構成を変更しようとしまし.htaccess
た。php.ini
以下の設定で作成しました。
max_execution_time=3600,max_input_time = 9999,post_max_size = 64M,upload_max_filesize = 64M
また、次の設定mod_security.c
でモジュールを変更しようとしました:.htaccess
SecRuleEngine Off, SecRequestBodyAccess Off
My php.ini settings of file size is following.
Directive Local Value Master Value
max_file_uploads 20 20
max_input_time 60 60
memory_limit 64M 64M
post_max_size 33M 33M
upload_max_filesize 32M 32M
あらゆる方法を試しましたが、それでも問題を解決できません。