-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Helpful error on upload of image type not supported by server #68644
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
Closed
adamsilverstein
wants to merge
24
commits into
WordPress:trunk
from
adamsilverstein:fix/image-upload-types
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
714fa5a
try: add error when uploading image type not supported by server
adamsilverstein a1d3fc1
Merge branch 'trunk' of github.com:WordPress/gutenberg into trunk
adamsilverstein 605bf32
Fix settings to match file.type
adamsilverstein 571d4ef
Code cleanup
adamsilverstein b5c1bd9
Merge branch 'trunk' into fix/image-upload-types
adamsilverstein f97809b
move new settings to lib/compat
adamsilverstein 0bcf76c
add newline at end of file
adamsilverstein 610fa15
Merge branch 'trunk' into fix/image-upload-types
adamsilverstein 1045b9a
Build typesNotSupportedByServer in loop
adamsilverstein a2fb518
Swith typesNotSupportedByServer to simple array of types
adamsilverstein 7c2e8b6
Revert change in use-media-upload-settings.js
adamsilverstein 0964ef6
fix/image-upload-types
adamsilverstein ee096ab
Check all image types for support
adamsilverstein 8ff3fef
Doc blocks: clarify data is unsupported images
adamsilverstein fc21009
Revert line move
adamsilverstein 9d6a22e
Move check into validateMimeTypeForServer
adamsilverstein 4a761b7
Revert validateMimeTypeForUser
adamsilverstein 87c7eb8
Add a test
adamsilverstein edaa08f
correct test message
adamsilverstein ef1eaa2
Move files to proper location
adamsilverstein 0739a9d
Correct upload test logic
adamsilverstein 6c972c5
ensure settings are loaded correctly
adamsilverstein 052e3ad
Correct UploadError import
adamsilverstein 1fd268b
Rename serverUnsupportedTypes -> wpUnsupportedMimeTypes
adamsilverstein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix/image-upload-types
- Loading branch information
commit 0964ef6797061a380f9bb50f076d273eceadd817
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.