Forums / General / 3.1 beta 1: big files upload problem

3.1 beta 1: big files upload problem

Author Message

Oliver Dissars

Sunday 01 June 2003 6:49:13 am

Hi,

I noticed that the 3.1 beta 1 (Win XP, P4 > 2G, 512 MB) has problems to store big files (file object, > 20 MB) via web publisher admin.

The upload seems to start, after a while the browser comes back and nothing has been added to the system.

Any experiences or hints with this issue?

Regards,
Oliver Dissars

Selmah Maxim

Sunday 01 June 2003 7:48:45 am

check phpinfo();

there is limit for uploaded file size, u can set it from php.ini config file, the default is 2 MB, search this under windows_path/php.ini
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Oliver Dissars

Tuesday 03 June 2003 7:55:51 am

Hello,

>there is limit for uploaded file size, u can set it from php.ini >config file, the default is 2 MB, search this under >windows_path/php.ini

Thanks for the hint!

But the upload of big files still not works. I have set the upload_max_filesize to 2000M but the upload of a 21M file is still not possible. I also tried to set the value to a really big value (200000M), but this changes nothing. File upload bigger 5M don't works - indepedent from this value.

Regards,
Oliver Dissars

Huib Kleinhout

Tuesday 03 June 2003 8:04:28 am

Have you looked for a LimitRequestBody value in the apache configuration?
Another cause could be a connection time out.

Oliver Dissars

Wednesday 04 June 2003 7:31:07 am

There're no more entries in httpd.conf or php.ini that affect IMO a upload. It also seems to be not a timeout, because the data stream stops a much ealier than a potential timeout could take place.

In the log files are no entries related to the upload (access.log / error.log).

I just tested more in detail a figured out, that the 3.0.2 shows the same behaviour. Also the problem occurs not only with files over 5 MB than with each file bigger as ~1,5 MB.

I know that http is not the best protocol for handling big files, but it is possible.

Nobody out there who managed bigger files with eZ?

Huib Kleinhout

Wednesday 04 June 2003 7:36:07 am

Any entries in your apache log files?
Did you turn try to turn on all debug options of ezpublish?

Oliver Dissars

Wednesday 04 June 2003 8:33:23 am

No entries in the apache logs.

eZ Debug delivers the following output for a "dead upload":

[...]
Warning: PHP Jun 04 2003 17:30:41

Undefined offset: 1 in c:\test\ez systems\ezpublish\lib\ezutils\classes\ezhttpfile.php on line 64

Notice: extension Jun 04 2003 17:30:41

1

Debug: Jun 04 2003 17:30:41

var/storage/original//.exe

Warning: PHP Jun 04 2003 17:30:41

unlink(var/storage/original//) [<a href='http://www.php.net/function.unlink'>function.unlink</a>]: Permission denied in c:\test\ez systems\ezpublish\lib\ezutils\classes\ezhttpfile.php on line 140

Error: eZBinaryFileType Jun 04 2003 17:30:41

Failed to store http-file: InstallNSR.exe

Warning: PHP Jun 04 2003 17:30:41

Undefined offset: 0 in c:\test\ez systems\ezpublish\kernel\classes\ezcontentobjecttreenode.php on line 1579

Warning: eZModuleOperationInfo::execute Jun 04 2003 17:30:41

Missing main operation memento for key: 71cc1aca04f82bbfbcf6bb6eae8938d2

Debug: Jun 04 2003 17:30:41

will update section ID

Warning: PHP Jun 04 2003 17:30:41

Undefined index: real_translation in c:\test\ez systems\ezpublish\kernel\classes\ezcontentobjecttreenode.php on line 1505

Warning: PHP Jun 04 2003 17:30:41

Undefined index: real_translation in c:\test\ez systems\ezpublish\kernel\classes\ezcontentobjecttreenode.php on line 1505

Warning: eZModule::redirect Jun 04 2003 17:30:41

Missing parameter(s) LanguageCode in view 'view'

Warning: PHP Jun 04 2003 17:30:41

Undefined index: real_translation in c:\test\ez systems\ezpublish\kernel\classes\ezcontentobjecttreenode.php on line 1505

Debug: eZContentCache::cleanup Jun 04 2003 17:30:41

Removing cache file 'var/cache/content/admin/full/eng-GB/2/215-99814bf1bfe575429f1e6525639a5817.php'

Warning: PHP Jun 04 2003 17:30:41

in_array() [<a href='http://www.php.net/function.in-array'>function.in-array</a>]: Wrong datatype for second argument in c:\test\ez systems\ezpublish\lib\ezutils\classes\ezhttpfile.php on line 174

Error: eZTemplate @ content/datatype/edit/ezbinaryfile.tpl:11[16] Jun 04 2003 17:30:41

No such attribute for object(ezhttpfile): original_filename
Choose one of following: original_filename, filename, filesize, is_temporary,
mime_type, mime_type_category, mime_type_part

Warning: PHP Jun 04 2003 17:30:41

in_array() [<a href='http://www.php.net/function.in-array'>function.in-array</a>]: Wrong datatype for second argument in c:\test\ez systems\ezpublish\lib\ezutils\classes\ezhttpfile.php on line 174

Error: eZTemplate @ content/datatype/edit/ezbinaryfile.tpl:15[15] Jun 04 2003 17:30:41

No such attribute for object(ezhttpfile): mime_type
Choose one of following: original_filename, filename, filesize, is_temporary,
mime_type, mime_type_category, mime_type_part

Warning: PHP Jun 04 2003 17:30:41

in_array() [<a href='http://www.php.net/function.in-array'>function.in-array</a>]: Wrong datatype for second argument in c:\test\ez systems\ezpublish\lib\ezutils\classes\ezhttpfile.php on line 174

Error: eZTemplate @ content/datatype/edit/ezbinaryfile.tpl:19[15] Jun 04 2003 17:30:41

No such attribute for object(ezhttpfile): filesize
Choose one of following: original_filename, filename, filesize, is_temporary,
mime_type, mime_type_category, mime_type_part

eZ debug

Timing: Jan 18 2025 02:11:01
Script start
Timing: Jan 18 2025 02:11:01
Module start 'content'
Timing: Jan 18 2025 02:11:02
Module end 'content'
Timing: Jan 18 2025 02:11:02
Script end

Main resources:

Total runtime0.8237 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.8438180.8359
Module start 'content' 0.00560.6259 769.6797610.3984
Module end 'content' 0.63150.1922 1,380.0781341.0625
Script end 0.8236  1,721.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00500.6095210.0002
Check MTime0.00190.2362210.0001
Mysql Total
Database connection0.00070.085210.0007
Mysqli_queries0.714186.68582080.0034
Looping result0.00300.36562060.0000
Template Total0.794696.520.3973
Template load0.00210.259920.0011
Template processing0.792496.202320.3962
Template load and register function0.00010.018210.0001
states
state_id_array0.00130.156710.0013
state_identifier_array0.00110.134420.0006
Override
Cache load0.00190.2323910.0000
Sytem overhead
Fetch class attribute can translate value0.00130.162540.0003
Fetch class attribute name0.00150.185280.0002
XML
Image XML parsing0.00410.498940.0010
class_abstraction
Instantiating content class attribute0.00000.002590.0000
General
dbfile0.01351.6343270.0005
String conversion0.00000.000630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
12content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs