Unable to upload binary files

Author Message

Felix Laate

Monday 03 May 2004 1:06:09 pm

Hi all!

After upgrading a 3.2-4 site to 3.3-4, and sweating alot over image-problems (before a German saved the day), I now face the next problem:

- I can't upload binary files (the classical class 12 "file"). The title and description fields are OK, but not the file itself..

Debugging gives nothing..

Any help will be appreciated!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Alex Jones

Monday 03 May 2004 2:49:24 pm

Have you checked the permissions on the var directory and its sub-directories since the upgrade?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Felix Laate

Monday 03 May 2004 11:31:11 pm

Yes..

They are all 777 and owned by the right user..

Images are stored as they should be, files seem not to.

Upload-limit in php.ini is big enough (by far).

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Lazaro Ferreira

Wednesday 05 May 2004 10:54:12 am

Hi,

1) Are you sure the problem is with EZP ?

Have you checked your Apache and PHP logs files ?

3) Have you the right permissions as an EZP user to upload this files ?

Lazaro
http://www.mzbusiness.com

Lazaro
http://www.mzbusiness.com

Iain MacLean

Thursday 06 May 2004 4:37:39 am

Hi Felix

Maybe it's your browser. I found that I could not upload PDF files properly with Opera (v7.23 for Linux). It would put them in the /var/site_access/storage/original/text directory instead of the /var/site_access/storage/original/application directory. There would be a link, which pointed to the correct directory, but the PDF file wasn't there.

Using another browser (Mozilla, Konqueror, IE) worked fine. Other types of files (e.g. OpenOffice, MSOffice) didn't have this problem.

Cheers
Iain

Chris Fullerton

Thursday 06 May 2004 6:02:59 am

I had a similar problem - don't know if this will help you, but it might save someone from some trouble.

First, there are two config files that determine the size of the file you can upload. You want to check /etc/php.ini for "upload_max_filesize" and "post_max_size".

You also need to check /etc/httpd/conf.d/php.conf for "LimitRequestBody".

If the LimitRequestBody is too small, you will see an error in your apache error_log, so that's pretty easy to diagnose.

I also had a problems using an older version of php (I was using 4.2.2) - even with the all the above settings correct, I was unable to upload a large file. When I upgraded to 4.3.4, the problem went away.

What is the size of the file you're trying to upload?

Felix Laate

Friday 07 May 2004 12:02:50 am

Thanx all!

But my problem is still there.

My system is running:
- apache 1.3.29
- php 4.3.4

The log says nothing. The file /etc/httpd/conf.d/php.conf soes not exist on my system.

It's still a puzzle..

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.