Wednesday 12 May 2004 4:37:04 am
Try something like this:
$binaryfile =& $attribute->content();
if ( is_object( $binaryFile ) )
{
$binaryFile->setAttribute( 'mime_type', 'application/pdf' );
$binaryFile->store();
}
This assumes that <i>$attribute</i> is an eZContentObjectAttribute.
--
Amos
Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq
|