"the document contains no data" or can't upload file

symptom: Im trying to use an upload image module with drupal. when i
submit the form, I get a return from the server that says "the document
contains no data" or the site goes to a dead page.

solution: Apache is set to limit php pages to a maximum of 512 KB by
default. I increased the limit to 1 GB (the LimitRequestBody directive
in /etc/httpd/conf.d/php.conf).

There are also limits on file sizes in /etc/php.ini:
post_max_size = 8M
upload_max_filesize = 2M

You might want to change those values, depending on the files sizes you are using.