Alternative for IMediaFactory and UmbracoMediaFactory
In version 4.something there was the UmbracoMediaFactory that you could use to customize the behavior of Media items.
The case is this: I have a user that uploads documents and downloadable files into the Media section, both mediatypes (or contenttypes currently) have additional properties. In version 4.x I used the UmbracoMediaFactory behavior to create the appropriate mediatype (a download or document) when the user uploaded a file in a certain directory and implicitly set additional properties of the media item. This worked perfectly when using the Desktop Media Uploader or when dragging and dropping files into the Media section in later versions.
When use uploads a file into the Media section in v7, a media item of contenttype "File" is always created. Is there a way to intervene and create a media item of a custom contenttype? I noticed that the said MediaFactory functionality has become obsolete.
Alternative for IMediaFactory and UmbracoMediaFactory
In version 4.something there was the UmbracoMediaFactory that you could use to customize the behavior of Media items.
The case is this: I have a user that uploads documents and downloadable files into the Media section, both mediatypes (or contenttypes currently) have additional properties. In version 4.x I used the UmbracoMediaFactory behavior to create the appropriate mediatype (a download or document) when the user uploaded a file in a certain directory and implicitly set additional properties of the media item. This worked perfectly when using the Desktop Media Uploader or when dragging and dropping files into the Media section in later versions.
When use uploads a file into the Media section in v7, a media item of contenttype "File" is always created. Is there a way to intervene and create a media item of a custom contenttype? I noticed that the said MediaFactory functionality has become obsolete.
Got it! Love it, much easier now!
is working on a reply...