Is it possible to hook into the upload event of the desktop media uploader? Our goal is to get all IPTC metadata from uploaded images to fill for example, the image caption.
You could extend the standard media factories / create your own media factories to handle certain file types. You can then get access to the file during upload and store whatever info you need against the media item.
For example, you could extend UmbracoFileMediaFactory and overwride the HandleMedia method:
PS. I've linked you to the DMU source, rather than the one in Umbraco as the umbraco source seems to be unavailable at the moment. The code should be the same, but might be in a difference namespace if you are using the version of the DMU that comes preinstalled.
Desktop Media Uploader with IPTC
Is it possible to hook into the upload event of the desktop media uploader?
Our goal is to get all IPTC metadata from uploaded images to fill for example, the image caption.
--> http://en.wikipedia.org/wiki/IPTC_Information_Interchange_Model
You could extend the standard media factories / create your own media factories to handle certain file types. You can then get access to the file during upload and store whatever info you need against the media item.
For example, you could extend UmbracoFileMediaFactory and overwride the HandleMedia method:
http://dmu4umb.codeplex.com/SourceControl/changeset/view/0c5a4c0b9704#UmbracoFileMediaFactory.cs
Storing the addition info you need
PS. I've linked you to the DMU source, rather than the one in Umbraco as the umbraco source seems to be unavailable at the moment. The code should be the same, but might be in a difference namespace if you are using the version of the DMU that comes preinstalled.
is working on a reply...