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

Update Controller.php #5336

Merged
merged 1 commit into from
May 24, 2021
Merged

Update Controller.php #5336

merged 1 commit into from
May 24, 2021

Conversation

vitormicillo
Copy link
Contributor

This will correct the error generated when saving a new record with media picker type fields.
The error will be thrown when an item is added but no file is being uploaded

This will correct the error generated when saving a new record with media picker type fields.
@emptynick
Copy link
Collaborator

A little more information:
When an item is added, a UUID for a folder is generated where files will be uploaded to.
After storing this folder will be renamed to the primary-key.
When no image is uploaded, the folder won't be generated and thus will fail.

@emptynick emptynick merged commit 683b789 into thedevdojo:1.4 May 24, 2021
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.

None yet

2 participants