ngx-awesome-uploader
ngx-awesome-uploader copied to clipboard
File extensions and image cropped are not working correctly
I came over a bug here that the file extensions are not working properly.
If you have fileExtensions]="['pdf', 'jpg', 'jpeg', 'png', 'mp4', 'css']"
when you try to upload photo you can have access on all files not only images.
Second error it is that when upload photo even it is cropped the file size will not change it is still the same as the original photo.
@zhuniqiabedin , you have got any workaround to proceed further. its same issue for me as well.
@kishoreaoe HI, you can use accept property for that. Pls see in documentation
dear @vugar005 , thanks for your prompt reply. i've tried both the ways as given below, still the library is picking as default.
<ngx-awesome-uploader #uploader [fileMaxCount]="1" [fileMaxSize]="90000" [uploadType]="'single'" (validationError)="onValidationError($event)" [fileExtensions]="['jpg', 'jpeg', 'png']" [accept]="['jpg', 'jpeg', 'png']" (uploadSuccess)="onUploadSuccess($event)" (fileAdded)="onFileAdded($event)" [customValidator]="myCustomValidator" [showPreviewContainer]="false">
Please advise if we are doing any wrong way.
@kishoreaoe Hi, you provide input incorrectly. You should use Example: [accept]="'.jpg, .png'"
Thanks alot for your help , @vugar005 . its working :)