Using collective.quickupload with wildcard.media

aschmitz <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
I've configured a server with Plone 4.3.3, collective.quickupload 1.6.5, and
wildcard.media 1.2b5.  Through the ZMI > content_type_registry, I changed
the major_minor for the video/ MIME type to the Video content type.  When I
upload an MP4 video using a Quick Upload portlet, I get the following
errors:

INFO collective.quickupload uploading file with XHR:
filename=add-holding.mp4, title=Add holding, description=,
content_type=video/mp4, portal_type=WildcardVideo
INFO collective.quickupload An error happens : the dexterity content type
http://localhost/media/add-holding.mp4 has no file field, rawdata can't be
created
ERROR collective.quickupload Error creating add-holding.mp4 file: list index
out of range

I found the error message in dexterity.py of the collective.quickupload
product.  It looks like the following code isn't finding any file fields in
the video dexterity content type:

        file_fields = [field for name, field in fields
                       if INamedFileField.providedBy(field)
                       or INamedImageField.providedBy(field)]

Would it be possible to get collective.quickupload to support videos from
wildcard.media with a few changes to one or both of these products?

Thanks,
Alan




--
View this message in context: http://plone.293351.n2.nabble.com/Using-collective-quickupload-with-wildcard-media-tp7572834.html
Sent from the General Questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.