Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By mhn on
Hello,
I am having problems uploading files larger than 500 KB in both Image and Filestore-modulen.
When I click Preview, I just get a Page cannot be displayed / Cannot find server or DNS error.
This happens only when filesize is greater than 500 kb.
Maybe this isn't a problem in Drupal, but I am thankful for every advice anyone can give.
Thanks.
Comments
php.ini? proxy server?
In your php.ini, make sure the max filesize for uploads is set to something sensible. Something like upload_max_filesize = 4M should do the trick.
You might be having issues with proxy servers being in the way. There's not much you can do about that, besides whinge at your sysadmin.
If you're using Mozilla, it will display a progress bar in the status bar for the file upload. This might help you diagnose the error further.
Working now
Thanks, I changed those settings but there was another I had totally forgotten about:
In php.conf, LimitRequestBody was set to 524288.
Changing that to a larger value made it work like a charm!
/M
still...
same here,
When uploading a small banner image I get:
uploaded file exceeds the upload_max_filesize directive in php.ini
while:
and
and
and
restarted apache, what else is there to do?
--
groets
bertb
--
groets
bert boerland
php.conf
I am having the same problem. Not being able to upload a 1.6Mb file.
I would like to change the php.conf file but i can't find it.