Skip to content

Remove default value for allowedTypes property - #24318

Merged
youknowriad merged 8 commits into
WordPress:masterfrom
javidalkaruzi:fix/file-upload-allowed-types
Aug 4, 2020
Merged

youknowriad merged 8 commits into
WordPress:masterfrom
javidalkaruzi:fix/file-upload-allowed-types

Conversation

@javidalkaruzi

Copy link
Copy Markdown
Contributor

Description

This pull request resolves #24315. While investigating, a similar behaviour was observed for images.

How has this been tested?

I observed that all existing unit tests passed.
I observed behaviour in the block editor by first replicating the issue then checking that my change gave the desired result.

@javidalkaruzi javidalkaruzi changed the title If allowedTypes array is empty pass undefined instead Remove default value for allowedTypes property Aug 4, 2020
Janvo Aldred added 4 commits August 3, 2020 20:58

@youknowriad youknowriad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, this is looking good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block editor /packages/block-editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File block - Can't upload pdf file using Upload button but can using Media Library link

3 participants