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

al’s picture

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.

mhn’s picture

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

bertboerland’s picture

same here,

When uploading a small banner image I get:
uploaded file exceeds the upload_max_filesize directive in php.ini

while:

[root@boedha php]# grep -i filesize /etc/php.ini
upload_max_filesize = 2M

and

[root@boedha php]# grep -i LimitRequestBody /etc/httpd/conf.d/php.conf
    LimitRequestBody 2000000

and

[root@boedha php]# grep -i post_m /etc/php.ini
post_max_size = 8M

and
restarted apache, what else is there to do?

--
groets

bertb

--
groets
bert boerland

Anonymous’s picture

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.