Path

ez projects / ezmultiupload / forum / general / uploading different filetypes


Uploading different filetypes

You need to be logged in to post messages in the forums. New users may register here.

Richard Lundberg

Member since:
09 January 2008

Posts: 8

Monday 21 February 2011 1:00:46 pm

Hi,

In a site I have developed, I have created a new class called Video, (which is essentially copied from the Flash Player from ezflow extension). The class simply has a Title (Text line), description (xml block) and the video file (Media : Flash)

I have been trying to adapt the multiupload extension so that one can upload multiple video files at one.

I have created a container class for the videos called video gallery, I have added the following to ezmultiupload.ini




[MultiUploadSettings]


AvailableClasses[]


AvailableClasses[]=video_gallery


 

[FileTypeSettings_video_gallery]


FileType[]


FileType[]=*.flv




when I inniciated an upload from the "video gallery", the videos are uploaded in class "file" How can I change things so that the content class added is "video"

www.peakm3.com

Up

Clément Matéo

Member since:
23 February 2010

Posts: 21

Monday 21 February 2011 1:54:29 pm

Hi Richard,

I think you need to override upload.ini to map mime type with your class. Take a look on CreateSettings section in upload.ini within eZ Publish settings folder.
Up

Richard Lundberg

Member since:
09 January 2008

Posts: 8

Tuesday 22 February 2011 12:32:24 pm

Perfect, thanks.

For reference in upload.ini.append.php in the ezmultiupload extension I added




[CreateSettings]


MimeClassMap[video/x-flv]=flash_player


 

[flash_player_ClassSettings]


FileAttribute=file


NameAttribute=name


NamePattern=<original_filename_base>


 



www.peakm3.com

Up

You need to be logged in to post messages in the forums. New users may register here.