An error was reported to net::ERR_SSL_BAD_RECORD_MAC_ALERT when uploading pictures under https.

An error was reported when uploading pictures under

https: Failed to load resource: net::ERR_SSL_BAD_RECORD_MAC_ALERT . There is no problem when uploading some small pictures of several hundred kilos. Once it is greater than 3m, this error will be reported

.

but everything is fine under http.

when I see this error message, I think it should be ssl"s error, and then the domain name uses a [free DV version of SSL certificate], which indicates that the certificate is about to expire and reapplies for a new one, or the same error occurs.

the upload plug-in that was misused before was webuplaod,. I thought there was a problem with the plug-in, so it was replaced with the same problem as plupload,

.

ssl is configured as follows:

<VirtualHost *:443>
    DocumentRoot "D:\wamp\www\project"
    ServerName project.com
    SSLEngine on

    SSLCertificateFile "D:\wamp\bin\apache\apache2.4.9\conf\cert\project\2_www.project.com.crt"

    SSLCertificateKeyFile "D:\wamp\bin\apache\apache2.4.9\conf\cert\project\3_www.project.com.key"

    SSLCertificateChainFile "D:\wamp\bin\apache\apache2.4.9\conf\cert\project\1_root_bundle.crt"

</VirtualHost>

apache version is 2.4.9, using wnmp"s integrated environment.
normal access is fine. Only an exception occurs here when uploading pictures

< hr >

paste the request header and request content
Request Headers

Provisional headers are shown
Content-Type:multipart/form-data; boundary=----WebKitFormBoundary8STrxWCVZliph7G9
Origin:https://www.project.com
Referer:https://www.project.com/module/goods/main/form
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Request Payload

------WebKitFormBoundary8STrxWCVZliph7G9
Content-Disposition: form-data; name="name"

_20181203155301.jpg
------WebKitFormBoundary8STrxWCVZliph7G9
Content-Disposition: form-data; name="file"; filename="_20181203155301.jpg"
Content-Type: image/jpeg


------WebKitFormBoundary8STrxWCVZliph7G9--

check whether the settings of
upload_max_filesize and post_max_size in the php.ini file are big enough, modify them if not, and then restart the apache service

.

reference from: https://stackoverflow.com/que.

Menu