Skip to content

Commit

Permalink
Merge pull request #509 from cirx1e/master
Browse files Browse the repository at this point in the history
Accept webp image uploads
  • Loading branch information
dimdenGD authored Sep 9, 2023
2 parents aa227ad + 5c8d936 commit 7a3f857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function getMedia(mediaArray, mediaContainer) {
input.type = 'file';
input.multiple = true;
if(!vars.disableAcceptType){
input.accept = 'image/png,image/jpeg,image/gif,video/mp4,video/mov';
input.accept = 'image/jpeg,image/png,image/webp,image/gif,video/mp4,video/quicktime';
}
input.addEventListener('change', () => {
handleFiles(input.files, mediaArray, mediaContainer);
Expand Down

0 comments on commit 7a3f857

Please sign in to comment.