vugar005 / ngx-awesome-uploader

Angular Library for uploading files with many features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pdf not working

memory660 opened this issue · comments

  • angular 16
  • with pdf, nothing happens. i can't cropped pdf
  • the images work
<div class="container">
    <ngx-awesome-uploader #uploader [adapter]="adapter" [fileMaxCount]="3" [fileMaxSize]="700" [uploadType]="'multi'"
                          [enableCropper]="true" [cropperOptions]="cropperOptions"
                          (validationError)="onValidationError($event)"
                          [fileExtensions]="['pdf', 'jpg', 'jpeg', 'png' ]" (uploadSuccess)="onUploadSuccess($event)"
                          (removeSuccess)="onRemoveSuccess($event)" (fileAdded)="onFileAdded($event)"
                          [itemTemplate]="myItemTemplate" [customValidator]="myCustomValidator" [captions]="captions"
                          [accept]="'.jpg, .png, .mp4, .pdf'">
        <div class="dropzoneTemplate">
            <div class="bg-plan">
                <div class="uploader-box">
...
...
                </div>
            </div>
        </div>
    </ngx-awesome-uploader>
</div>
<ng-template #myItemTemplate let-fileItem="fileItem" let-uploadProgress="uploadProgress">
    <p>File Size: {{ fileItem.file.size }}</p>
    <p>File Name: {{ fileItem.fileName }}</p>
    <p>Upload Progress: {{ uploadProgress }} %</p>
    <button (click)="uploader.removeFile(fileItem)">Remove</button>
</ng-template>