Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We have inherited a website that doesn't use any Media Pickers. They use Umbraco.UploadFields everywhere. This means that their content editors are uploading the same image over and over in a lot of cases. The site has been around for a while and there are hundreds if not thousands of media items uploaded to the site this way. To further complicate things, the website has somehow worked itself into a situation where many of these content nodes have Upload fields that reference media files in the same folder. That means that if you delete one of the content nodes and empty the recycle bin, the media folder is deleted also. Other content nodes that link to media in that folder will all of a sudden have broken links.
Does anyone have any advice for switching this site from using the Umbraco.UploadField to a Media Picker or an ImageCropper or something of that nature? The difficulty I'm having with any sort of automated process is creating a good media folder structure for the new media items and dealing with Umbraco.UploadFields that link to the same media item. Any thoughts?
I would create a custom media picker, simply reuse the source of the current media picker controller. Then in the controller try parse the model.value to number, if failed, it should be a string.
You could take it a step further and create a custom propertyconverter.
Best of luck!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted