wKoza / ngx-upload

Ngx-upload is an upload module for Angular Ivy ready
30 stars 15 forks source link

feat: Add new MineType `All` which corresponds to '*' #75

Closed wKoza closed 4 years ago

wKoza commented 4 years ago

closes #74

ghten commented 4 years ago

Hi,

I have put

public optionsInput: InputFileOptions = { multiple: true, accept: [MineTypeEnum.All], };

and I have this error over all files this file is not accepted because of its type

Thanks

wKoza commented 4 years ago

Hi @ghten ,

Are you sure that you have the last version 8.1.0 in your node_modules. I tested this option in my test application and it's work well.

ghten commented 4 years ago

Yes the version is "@wkoza/ngx-upload": "^8.1.0".

this file is not accepted because of its type File ​ lastModified: 1578575375237 ​ name: "Alpen Key 2020-031.odt" ​ size: 46738 ​ type: "application/vnd.oasis.opendocument.text" ​ webkitRelativePath: "" ​

: FilePrototype { name: Getter, lastModified: Getter, webkitRelativePath: Getter, … } wkoza-ngx-upload.js:107 _invokeConsoleMethod wkoza-ngx-upload.js:107 error wkoza-ngx-upload.js:95 addToQueue wkoza-ngx-upload.js:163 onFilesAdded wkoza-ngx-upload.js:623 View_InputfileComponent_0 InputfileComponent.html:3 Angular 13
wKoza commented 4 years ago

I will push the new version of my test application tonight. Keep in touch.

Le jeu. 9 janv. 2020 à 16:25, ghten notifications@github.com a écrit :

Yes the version is "@wkoza/ngx-upload": "^8.1.0",

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/wKoza/ngx-upload/pull/75?email_source=notifications&email_token=ACW777EDAKANMZVNTS6MNGDQ446VDA5CNFSM4KEUYCL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQVOJY#issuecomment-572610343, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACW777CBUFYHYF6OPSRUTXDQ446VDANCNFSM4KEUYCLQ .

wKoza commented 4 years ago

The new version is online : https://ngx-upload.github.io/#/simple-bootstrap

this is the repository : https://github.com/wKoza/ngx-uploader-app

I use the new MineType with the input button (section bootstrap).

it seems good.

ghten commented 4 years ago

Hi,

It's not bootstrap, it's material, I have downloaded again. I have te same error.

ghten commented 4 years ago

Hi,

In bootstrap in your example https://ngx-upload.github.io/#/simple-bootstrap is the same error

error during drop action:
{…} ​errorAccept: true ​errorMultiple: false ​item: File ​​lastModified: 1565682650710 ​​name: "countries.sql" ​​size: 18581 ​​type: "" ​​webkitRelativePath: ""

Thanks

wKoza commented 4 years ago

Hi @ghten , Sorry, I'm a little buzzy now. Thank for your report, I'll see that as soon as possible. keep in touch

wKoza commented 4 years ago

Hi @ghten , It should be OK with the 8.1.1

ghten commented 4 years ago

Thanks wKoza. I've done tests and it seems that everything is working