zefoy / ngx-dropzone-wrapper

Angular wrapper library for Dropzone
MIT License
174 stars 51 forks source link

Not able to remove added file #137

Open rajurajpurohit opened 5 years ago

rajurajpurohit commented 5 years ago

I am using below configuration

public fileConfig = { url: AppSettings.API_ENDPOINT, acceptedFiles: 'application/pdf', autoProcessQueue: false, addRemoveLinks: true, parallelUploads: 1, maxFiles: 1 }

Its showing Remove File link, but it's not working. Also, I can add multiple files by clicking above delete link (But as configuration, its maxFiles = 1). Can you suggest me for this?

sconix commented 4 years ago

Sorry I am not that familiar with the Dropzone and this is more of an question about how Dropzone works.

rajurajpurohit commented 4 years ago

There is an issue with the delete file link and maximum file selection. I am adding configuration for one file selection by setting maxFiles = 1, It not working. I am able to add a file by clicking at area of the dropzone.

sconix commented 4 years ago

It still sounds like an issue with Dropzone and not with this library.

inspiring71 commented 4 years ago

@rajurajpurohit I guess you have to set maxFiles to zero if you want only one file to be uploaded. I guess it is pretty much late for you but writing the solution here for others who are seeking a solution here.