Skip to content

Allow FileUpload and Imagecropper to upload files in the same way#16214

Merged
leekelleher merged 9 commits intov14/devfrom
v14/feature/handle-fileuploads-and-imagecropper-uploads-in-the-same-way
May 13, 2024
Merged

Allow FileUpload and Imagecropper to upload files in the same way#16214
leekelleher merged 9 commits intov14/devfrom
v14/feature/handle-fileuploads-and-imagecropper-uploads-in-the-same-way

Conversation

@bergmania
Copy link
Copy Markdown
Member

@bergmania bergmania commented May 3, 2024

Summary

Warning

Do not merge without the backoffice client PR umbraco/Umbraco.CMS.Backoffice#1764

This PR aligns how file upload and image cropper can upload images.

Now they both use json and share the same structure

{
   "temporaryFileId" : "00000000-0000-0000-0000-000000000000",
   "src" : "..."
}

If temporaryFileId is not null ,it will replace any existing src. temporaryFileId is basically only used as input.

Test

  • Ensure the image cropper and file uploads work on a new install
  • Ensure a migrated database with image cropper and file uploads still work before and after a new save

@bergmania bergmania self-assigned this May 7, 2024
@bergmania bergmania marked this pull request as ready for review May 7, 2024 11:59
Copy link
Copy Markdown
Contributor

@kjac kjac left a comment

Choose a reason for hiding this comment

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

💪

@leekelleher
Copy link
Copy Markdown
Member

Backoffice PR umbraco/Umbraco.CMS.Backoffice#1764 has been approved and merged in. 👍

@leekelleher leekelleher merged commit 39e9408 into v14/dev May 13, 2024
@leekelleher leekelleher deleted the v14/feature/handle-fileuploads-and-imagecropper-uploads-in-the-same-way branch May 13, 2024 11:29
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