The issue: HTTP 500 error when uploading image
Are there any restrictions or server side filters that would affect uploading images with a special character (' aka U+0027 or ‘Apostrophe’) - e.g file'name.jpg?
We are experiencing this when uploading images using the Textpattern CMS upload widget (build with PHP + JS). The server response is HTTP 500 error. Uploading the same image with the troublesome character removed (file_name.jpg) works fine.
Uploading directly through SFTP also works fine.
Note - The same issue as been reported when doing the same image upload with Expression Engine.
Update — log per request:
[Thu Jun 02 23:06:24.243384 2022] [:error] [pid 32825] [client 131.129.8.190:33868] [client 131.129.8.190] ModSecurity: Access denied with code 44 (phase 2). Match of "eq 0" against "MULTIPART_STRICT_ERROR" required. [file "/etc/httpd/conf.modules.d/security.conf"] [line "26"] [id "200002"] [msg "Multipart request body failed strict validation:       PE 0,       BQ 0,       BW 0,       DB 0,       DA 0,       HF 0,       LF 0,       SM 0,       IQ 1,       IP 0,       IH 0,       FL 0"] [hostname "emps.l-c-n.com"] [uri "/textpattern/index.php"] [unique_id "YplCcCeVnj6@VCypQmtPGwAAABI"], referer: https://emps.l-c-n.com/textpattern/index.php?event=image&sort=id&dir=desc&page=1&search_method=id,name,category
[Thu Jun 02 23:06:24.243586 2022] [http:error] [pid 32825] [client 131.129.8.190:33868] AH01579: Invalid response status 44, referer: https://emps.l-c-n.com/textpattern/index.php?event=image&sort=id&dir=desc&page=1&search_method=id,name,category