Skip to content
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

Fix Upload Field #35

Merged
merged 5 commits into from
Sep 18, 2024
Merged

Fix Upload Field #35

merged 5 commits into from
Sep 18, 2024

Conversation

maxime-rainville
Copy link
Owner

This should fix the problem with the Upload field.

The problem was that we were saving data directly without going through any form fields.

The Upload field has a somewhat unusual structure for its data.

I've updated the logic that save DataObject to go through a proper form. This allows the UploadField to do what it needs to convert the Data to a format it understands.

Parent issue

@mfendeksilverstripe
Copy link
Collaborator

Test cases covered

✅ Create new item with an image

Screenshot 2024-09-19 at 11 36 24 AM

✅ Edit an existing item with an image and change the image

Screenshot 2024-09-19 at 11 51 06 AM

Copy link
Collaborator

@mfendeksilverstripe mfendeksilverstripe left a comment

Choose a reason for hiding this comment

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

Nice one 👍

@mfendeksilverstripe mfendeksilverstripe merged commit f90adbd into 0 Sep 18, 2024
14 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants