Skip to content

V16: Split media handling from UmbDropzoneManager#19031

Merged
iOvergaard merged 13 commits intov16/devfrom
v16/bugfix/split-dropzone-manager
Apr 15, 2025
Merged

V16: Split media handling from UmbDropzoneManager#19031
iOvergaard merged 13 commits intov16/devfrom
v16/bugfix/split-dropzone-manager

Conversation

@madsrasmussen
Copy link
Member

@madsrasmussen madsrasmussen commented Apr 14, 2025

This PR separates media handling from the UmbDropzoneManager to resolve a circular dependency.

The PR introduces an UmbMediaDropzoneManager that manages all aspects of media type checking and media item and folder creation. The UmbDropzoneManager is now limited to creating temporary files only.

Unfortunately, the PR affects a couple of features that we initially promised to remove in version 17, but we had to address this now instead.

Effects of this PR:

  • Using the <umb-dropzone-media> element, everything still functions as before.
  • Using the <umb-input-dropzone> element, everything still functions as before.
  • The UmbDropzoneManager will now only handle temporary files. Please use the UmbMediaDropzoneManager for additional media file creation.
  • Dropzone events and classes can now only be imported from the @umbraco-cms/backoffice/dropzone space, whereas it was possible to import from "media" in V15.

@madsrasmussen madsrasmussen marked this pull request as ready for review April 14, 2025 13:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Copy link
Contributor

@iOvergaard iOvergaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, and it seems to work with the inheritance. It's a bit odd, I agree, but it should be alright with the proposed solution.

@iOvergaard iOvergaard changed the title Split media handling from UmbDropzoneManager V16: Split media handling from UmbDropzoneManager Apr 15, 2025
@iOvergaard iOvergaard merged commit 4087f3f into v16/dev Apr 15, 2025
26 of 27 checks passed
@iOvergaard iOvergaard deleted the v16/bugfix/split-dropzone-manager branch April 15, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants