Forums / Developer / probleme upload file mpg

probleme upload file mpg

Author Message

anne martinet

Wednesday 20 August 2008 5:25:43 am

Good morning,

I try to load a video mpg (30Mo), via admin, in a class with one of its type attribute is File.
But when I confirm the creation of my subject, eZ me redisplays the page editorial content with the File field empty.
Why did t'il not want this file?
I have managed to upload a picture through this field File ....

How can I upload videos type mpg?

thank you in advance,

Anne.

Pascal Specht

Wednesday 20 August 2008 6:16:46 am

Hello Anne,

this is perhaps a PHP file size limitation issue (post_max_size) .

You should look at your php.ini and verify that time-out and file-size limits are relaxed:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 900    ; Maximum execution time of each script, in seconds
max_input_time = 600    ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M      ; Maximum amount of memory a script may consume (8MB)

; Maximum size of POST data that PHP will accept.
post_max_size = 256M

then, restart apache and check if it works better...

/usr/local/apache/bin/httpd -k restart

</pascal>

Gabriel Finkelstein

Wednesday 20 August 2008 9:40:47 am

You should also check max_upload_size

Pascal Specht

Thursday 21 August 2008 11:39:55 am

Anne, it would be nice to post your outcomings here, as others may stumble into similar problems some day. Did changing the php settings solve your issue? If not, how did you work around?
</Pascal>

anne martinet

Friday 22 August 2008 12:03:41 am

I'm sorry to answer only today....

I solve my probleme, and thanks for everybody :) :)

I do like that:
- in php.ini, I modify these lines:

; Maximum size of POST data that PHP will accept.
post_max_size = 256M
; Maximum allowed size for uploaded files.
upload_max_filesize = 256M

and I restart apache

I tested, and that resolve my probleme :)

thanks again :)

eZ debug

Timing: Jan 18 2025 15:56:34
Script start
Timing: Jan 18 2025 15:56:34
Module start 'content'
Timing: Jan 18 2025 15:56:35
Module end 'content'
Timing: Jan 18 2025 15:56:35
Script end

Main resources:

Total runtime0.8734 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.1406180.8359
Module start 'content' 0.00720.7395 769.9766575.1797
Module end 'content' 0.74670.1266 1,345.1563337.3750
Script end 0.8733  1,682.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5006210.0002
Check MTime0.00150.1725210.0001
Mysql Total
Database connection0.00070.079510.0007
Mysqli_queries0.792790.76592020.0039
Looping result0.00230.25772000.0000
Template Total0.840096.220.4200
Template load0.00200.234220.0010
Template processing0.838095.941820.4190
Template load and register function0.00030.030510.0003
states
state_id_array0.00160.187010.0016
state_identifier_array0.00090.101720.0004
Override
Cache load0.00170.1950360.0000
Sytem overhead
Fetch class attribute can translate value0.00160.181640.0004
Fetch class attribute name0.00110.124370.0002
XML
Image XML parsing0.00270.304240.0007
class_abstraction
Instantiating content class attribute0.00000.001680.0000
General
dbfile0.00580.6601330.0002
String conversion0.00000.000930.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs