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

Ush 1587 - Add 3 new media types on the backend #5004

Merged
merged 12 commits into from
Oct 29, 2024
Merged

Ush 1587 - Add 3 new media types on the backend #5004

merged 12 commits into from
Oct 29, 2024

Conversation

ushahidlee
Copy link
Contributor

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.

@ushahidlee ushahidlee requested a review from Mh-Asmi October 20, 2024 05:18
Copy link

linear bot commented Oct 20, 2024

@ushahidlee ushahidlee changed the title Ush 1415 - Add 3 new media types on the backend Ush 1587 - Add 3 new media types on the backend Oct 20, 2024
@@ -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());
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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.

@ushahidlee ushahidlee merged commit 6556659 into develop Oct 29, 2024
4 checks passed

use Phinx\Migration\AbstractMigration;

class EmbiggenMimeType extends AbstractMigration
Copy link
Member

Choose a reason for hiding this comment

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

Exquisitely cromulent 🙌

tuxpiper pushed a commit that referenced this pull request Nov 10, 2024
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.

3 participants