I've been developing a custom plugin with some image upload functionality. I had this working great with the angular umb-image-folder control. I only had to create a folder in the media section programmatically and assign it to the control. Then the user would be able to upload images with drag and drop.
But when I recently upgraded to 7.4.3, this wasn't working anymore. After some investigation, I figured out this control doesn't exist anymore. All I've found is two separate controls; umb-file-dropzone combined with the umb-photo-folder.
Does anybody know how to use these controls or is there a better way? Please let me know.
The directive has probably been refactored since there has been a lot of polishing in the 7.4 release - What version did you upgrade from?
Perhaps you can find a corresponding directive in the newly released documentation here https://our.umbraco.org/apidocs/ui/#/api ? - Please note that not all directives etc. have been fully documented yet though.
There is also a slight chance you need to refactor the module entirely since the media section also got an overhaul in the 7.4 release.
thanks for the quick response.
I thought I mentioned the version I upgraded from. But apparently I forgot; it was 7.3.6
I'll have a good look at the documentation. Already saw that the the umbPhotoFolder is deprecated. Maybe I can find something else.
Ended up using the umb-file-dropzone and umb-media-grid.
You can use the code from the umb-media-picker as an example. Just copied the code from the controller that I needed. The files I used are:
Umbraco\Views\propertyeditors\mediapicker\mediapicker.html
Umbraco\js\umbraco.controllers.js:3267 (Umbraco.Overlays.MediaPickerController)
umb-image-folder gone
I've been developing a custom plugin with some image upload functionality. I had this working great with the angular umb-image-folder control. I only had to create a folder in the media section programmatically and assign it to the control. Then the user would be able to upload images with drag and drop.
But when I recently upgraded to 7.4.3, this wasn't working anymore. After some investigation, I figured out this control doesn't exist anymore. All I've found is two separate controls; umb-file-dropzone combined with the umb-photo-folder.
Does anybody know how to use these controls or is there a better way? Please let me know.
Hi Wietze
The directive has probably been refactored since there has been a lot of polishing in the 7.4 release - What version did you upgrade from?
Perhaps you can find a corresponding directive in the newly released documentation here https://our.umbraco.org/apidocs/ui/#/api ? - Please note that not all directives etc. have been fully documented yet though.
There is also a slight chance you need to refactor the module entirely since the media section also got an overhaul in the 7.4 release.
Hope this helps.
/Jan
Hi Jan,
thanks for the quick response. I thought I mentioned the version I upgraded from. But apparently I forgot; it was 7.3.6 I'll have a good look at the documentation. Already saw that the the umbPhotoFolder is deprecated. Maybe I can find something else.
Hi Wietze
Yes then that directive is gone - Please share what you figure out during your research so others might benefit from it :)
Cheers, Jan
Ended up using the umb-file-dropzone and umb-media-grid. You can use the code from the umb-media-picker as an example. Just copied the code from the controller that I needed. The files I used are: Umbraco\Views\propertyeditors\mediapicker\mediapicker.html Umbraco\js\umbraco.controllers.js:3267 (Umbraco.Overlays.MediaPickerController)
Hope someone benefits from it.
is working on a reply...