I am using ngx-dropzone-wrapper Angular 2 wrapper for fileupload. Its working as expected if acceptedFiles: 'image/*'
I changed acceptedFiles to 'csv/*'
, '.csv/*'
, '.csv'
and 'csv'
trying to make it work for CSV files but it is not working.
How do I change the config to accept CSV files?
config:
import { DropzoneModule } from 'ngx-dropzone-wrapper';
import { DropzoneConfigInterface } from 'ngx-dropzone-wrapper';
const DROPZONE_CONFIG: DropzoneConfigInterface = {
server: AppSettings.backendServiceUrl + 'upload_endpoint',
maxFilesize: 50,
acceptedFiles: 'csv'
};
Plugin uses mime type text/csv
instead of file extensions i.e: .csv
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments