Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Uploading other video file than flv fails


Go to End


4 Posts   2336 Views

Avatar
adesweb

Community Member, 39 Posts

24 July 2009 at 8:43pm

Hi,

I am having a problem uploading any other video file than an flv. FFMPeg is installed, and FLV files upload and generate thumbnails fine.

I have tried the debug on handleswfupload() and it returns false even on the first test

if(isset($_FILES['swfupload_file']) && !empty($_FILES['swfupload_file']))

which suggests nothing is even getting set in the file field.

Is there something in the JavaScript test that is nullifying this field if it is not an FLV?

I have the line

$manager->setAllowedFileTypes(array("mpg",'mpeg','mp4','flv','mov','avi'));

in my getCMSFields, and have tried mpg and mp4 file types, all under the allowed PHP upload limit.

Any ideas?

Adrian

Avatar
adesweb

Community Member, 39 Posts

25 July 2009 at 1:37am

Got a bit further on this. Increasing max_post_size in php.ini did the trick, but now I'm getting it hanging when it says 'processing...' at the end of the upload progress. If I abort, it still seems to have managed to get it into the system, but it doesnt trigger an upload success for some reason.

??

Avatar
UncleCheese

Forum Moderator, 4102 Posts

25 July 2009 at 3:31am

You've confirmed that FFMPEG is installed and working? Check your ffmpeg_log.txt file to see what commands are being run.

Avatar
dacar

Community Member, 173 Posts

20 October 2010 at 2:19am

hi adesweb, did you solve your problem? Have you ever tried to use uploadify together with ffmpeg?