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 :)

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

eZ debug

Timing: Jan 31 2025 04:15:02
Script start
Timing: Jan 31 2025 04:15:02
Module start 'layout'
Timing: Jan 31 2025 04:15:02
Module start 'content'
Timing: Jan 31 2025 04:15:02
Module end 'content'
Timing: Jan 31 2025 04:15:02
Script end

Main resources:

Total runtime0.0163 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1328151.2109
Module start 'layout' 0.00580.0022 739.343836.6484
Module start 'content' 0.00800.0070 775.992294.2656
Module end 'content' 0.01500.0012 870.257833.9922
Script end 0.0162  904.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002213.7583140.0002
Check MTime0.00106.4442140.0001
Mysql Total
Database connection0.00148.398110.0014
Mysqli_queries0.002314.324530.0008
Looping result0.00000.073310.0000
Template Total0.00095.410.0009
Template load0.00063.987110.0006
Template processing0.00021.415610.0002
Override
Cache load0.00052.818010.0005
General
dbfile0.003119.166880.0004
String conversion0.00000.036740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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