Skip to content

Commit

Permalink
fix: add more image types to image upload in creator (microsoft#5154)
Browse files Browse the repository at this point in the history
* add more image types

* Prettier
  • Loading branch information
williamw2 authored Sep 7, 2021
1 parent 5493d3a commit 2313b60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sites/fast-creator/app/web-components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ function getImageUploadControl(): StandardControlPlugin {
context: ControlContext.fill,
control: (controlConfig: ControlConfig): React.ReactNode => {
return (
<FileControl {...controlConfig} accept=".jpg,.jpeg,.png,.gif">
<FileControl
{...controlConfig}
accept=".apng,.avif,.gif,.jpg,.jpeg,.png,.webp"
>
Add Image
</FileControl>
);
Expand Down

0 comments on commit 2313b60

Please sign in to comment.