Is there a package that adds a "Change Media Type" option to the Action Menu in Media? Something that operates like "Change Document Type" in the Content Action Menu?
The background for this question is as follows... We created a custom Media Type called PublishedDocument by copying the File Media Type and adding a couple of properties "DisplayName" "DisplayPublishDate". Some of our users added files using the drag and drop upload and created a bunch of "File" Media Types.
How can we convert these to PublishedDocument Media Types? DB, C# or Package suggestions are all welcome. This particular case extends the base File Media Type so we are not concerned about data loss.
Related to the same question, if you have a child Media Type that inherits all of it's properties from it's parent type, is it "safe" to manually (i.e. in the db) switch the nodes to the child type? It's hard to imagine why it would not work but anyone have any insight on the question?
Change Media Type?
Is there a package that adds a "Change Media Type" option to the Action Menu in Media? Something that operates like "Change Document Type" in the Content Action Menu?
The background for this question is as follows... We created a custom Media Type called PublishedDocument by copying the File Media Type and adding a couple of properties "DisplayName" "DisplayPublishDate". Some of our users added files using the drag and drop upload and created a bunch of "File" Media Types.
How can we convert these to PublishedDocument Media Types? DB, C# or Package suggestions are all welcome. This particular case extends the base File Media Type so we are not concerned about data loss.
You can use the MediaService API with the .GetMediaOfMediaType(int id) call then change it with some other method.
I've never done it with media but have used the ContentService API to change document types, templates, etc.
Hope this at least gets you started, here's some docs: https://our.umbraco.com/documentation/reference/management/services/mediaservice/
-Amir
Thanks Amir! I will check this out and see if it solves my problem.
I was wondering the same thing...
Related to the same question, if you have a child Media Type that inherits all of it's properties from it's parent type, is it "safe" to manually (i.e. in the db) switch the nodes to the child type? It's hard to imagine why it would not work but anyone have any insight on the question?
is working on a reply...