Forums / Setup & design / Unable to upload binary files

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

eZ debug

Timing: Jan 18 2025 16:15:11
Script start
Timing: Jan 18 2025 16:15:11
Module start 'content'
Timing: Jan 18 2025 16:15:11
Module end 'content'
Timing: Jan 18 2025 16:15:12
Script end

Main resources:

Total runtime0.3139 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.7109180.8359
Module start 'content' 0.00700.0185 768.5469101.8672
Module end 'content' 0.02550.2883 870.4141530.0547
Script end 0.3138  1,400.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00391.2395200.0002
Check MTime0.00160.5165200.0001
Mysql Total
Database connection0.00080.245410.0008
Mysqli_queries0.248879.27741410.0018
Looping result0.00160.51841390.0000
Template Total0.287891.710.2878
Template load0.00080.260610.0008
Template processing0.286991.420910.2869
Override
Cache load0.00060.181010.0006
Sytem overhead
Fetch class attribute can translate value0.00080.242410.0008
XML
Image XML parsing0.00040.140510.0004
General
dbfile0.00160.5093200.0001
String conversion0.00010.045530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs