Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf not working #124

Open
memory660 opened this issue Feb 29, 2024 · 0 comments
Open

pdf not working #124

memory660 opened this issue Feb 29, 2024 · 0 comments

Comments

@memory660
Copy link

memory660 commented Feb 29, 2024

  • 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant