-
Notifications
You must be signed in to change notification settings - Fork 506
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
Ush 1587 - Add 3 new media types on the backend #5004
Conversation
@@ -35,7 +35,7 @@ protected function isSupported(Command $command) | |||
public function __invoke(Action $action) | |||
{ | |||
$this->isSupported($action); | |||
$this->validateFileData($action->getMediaEntity()); | |||
// $this->validateFileData($action->getMediaEntity()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think is good idea to stop all validations.
at least we need to keep the size validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am disabling this because it presents a hard upload limit which is in opposition to the frontend functionality. I will be creating a new ticket for changes to the backend to handle the frontend functionality, and in the interim have implemented validation on the frontend.
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
class EmbiggenMimeType extends AbstractMigration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exquisitely cromulent 🙌
Issue:
We need 3 new media fields on the backend: image, document and audio. These fields should be able to handle an array of values.
Testing:
Fields of type 'media' with inputs 'image', 'document' or 'audio' work as expected accepting multiple values into each.