Monday 10 September 2007 5:48:01 am
How do you get eZ Publish to make a new object of a specific class based on the type of file that you upload? I tried the following in upload.ini.append.php
[CreateSettings]
MimeClassMap[audio/mpeg3]=mp3_audio
MimeClassMap[audio/x-mpeg-3]=mp3_audio
[mp3_audio_ClassSettings]
FileAttribute=file
NameAttribute=name
NamePattern=<original_filename_base>
But even though it said it was of file type audio/mpeg, it was made as a file class rather than the mp3_audio class I was hoping for. Thanks in advance for any replies.
|