I cannot upload an image - 404 ajax error When I try to upload an image, image is not generating and I always get ajax error.

I cannot upload an image.

I get a 404 ajax error.



I use Drupal 8.54

php.ini:


memory_limit = 254M 
upload_max_filesize = 20M 
post_max_size = 20M 
max_execution_time = 90 


No error - Recent log messages.

The files directory ( sites/default/files ) permissions - 777

I don't find any solution or references about that.

Edit:

I can't upload file. 

When I want to upload more than 8KB files, get ajax error.
This part of the AJAX error message can be helpful for you:


  the requested url /@custom was not found on this server


This may have the following root causes (including but not limited to):


.htaccess settings
Your settings.php