-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indexing errors when switching the upload field for media to a cropper #7
Comments
have you find a workaround Shannon, doing media ezsearch with file upload replaced as cropper? |
I haven't tried anything, if ezsearch get's updated that would be the best fix, would be pretty simple really. Otherwise you can try to add your own indexing handler just like ez search does and parse the value properly. |
any pointers or quick fix you can share for changing the part to support cropper default data type? I am not sure how to update to code to support the json parsing accordingly... // Extract the filename from media items |
This will support the imagecropdataset... not sure if there is any other way to detect if JSON exists rather than the URL. if (e.Fields.ContainsKey(StaticValues.Properties.UmbracoFile)) |
This may be considered a bit hacky, but a quick fix would be to extract the filename using regex if (e.Fields.ContainsKey("umbracoFile")) of course this depends on specific media types, and it doesn't check if the image cropper or upload field has been used t |
It's because of this code here:
in the ezSearchBoostrapper class
If you change the file upload on a media item to be a cropper, then the umbracoFile value is Json and this throws a ysod.
The text was updated successfully, but these errors were encountered: