diff --git a/projects/ngx-image-compress/src/lib/image-compress.ts b/projects/ngx-image-compress/src/lib/image-compress.ts index f06f37f..d9d30d5 100644 --- a/projects/ngx-image-compress/src/lib/image-compress.ts +++ b/projects/ngx-image-compress/src/lib/image-compress.ts @@ -151,6 +151,7 @@ export class ImageCompress { inputElement.id = 'upload-input' + new Date(); inputElement.style.display = 'none'; inputElement.setAttribute('type', 'file'); + inputElement.setAttribute('accept', 'image/*'); if (multiple) { inputElement.setAttribute('multiple', 'true');