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