DropzoneJS: add CSV to acceptedFile's list

Simo D'lo Mafuxwana

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'
};
Simo D'lo Mafuxwana

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Access dropzoneJS file's temporary source

From Dev

Add a list of integers into a csv file (JAVA)

From Dev

php add email to a list file csv

From Dev

add new item to typeahead if it's not on the list

From Java

Difference between a List's Add and Append method?

From Dev

Python, add variable's names to a list/dict

From Dev

How to drop and add a new list of columns to a .csv file?

From Dev

ng-csv $q.all add response to list angular

From Dev

Strange results when using ForLoop to read CSV and add data to list

From Dev

How to select specific list elements and add them to a csv row with python

From Dev

Bash: Add empty column(s) to CSV with unknown positions

From Dev

R read multiple csv's and add ID key with readr/tidy

From Dev

Convert .xls/.xlsx spreadsheets to multiple .csv's based on a list

From Java

Kotlin's List missing "add", "remove", Map missing "put", etc?

From Dev

Reflection - Add a Delegate to another Delegate's invocation list

From Dev

How to add a list of node's name with tooltip in sankey

From Dev

What's the correct way to add a collection of file locations to a List?

From Dev

macro to check if value is in another list, and if so add today's date

From Dev

Cannot add a derived class object to a list of it's base class type

From Dev

How to add program to every single file's "open with..." list?

From Dev

What's the best way to add the same ajax function to a list of comments?

From Dev

Add newly-created List to Sharepoint left navigation's 'Recent'

From Dev

Sonata Admin : Add more groups to the service pool's list

From Dev

Add owner name in AWS S3 grantee list

From Dev

How to add dependency to module's list of dependencies in Angular?

From Dev

Dynamically add iron-list and all it's data

From Dev

Created a user with user add and it's not listed in users list

From Dev

DropZoneJS + JavascriptLoadImage: rotate image?

From Dev

Download uploaded file with DropzoneJs

Related Related

  1. 1

    Access dropzoneJS file's temporary source

  2. 2

    Add a list of integers into a csv file (JAVA)

  3. 3

    php add email to a list file csv

  4. 4

    add new item to typeahead if it's not on the list

  5. 5

    Difference between a List's Add and Append method?

  6. 6

    Python, add variable's names to a list/dict

  7. 7

    How to drop and add a new list of columns to a .csv file?

  8. 8

    ng-csv $q.all add response to list angular

  9. 9

    Strange results when using ForLoop to read CSV and add data to list

  10. 10

    How to select specific list elements and add them to a csv row with python

  11. 11

    Bash: Add empty column(s) to CSV with unknown positions

  12. 12

    R read multiple csv's and add ID key with readr/tidy

  13. 13

    Convert .xls/.xlsx spreadsheets to multiple .csv's based on a list

  14. 14

    Kotlin's List missing "add", "remove", Map missing "put", etc?

  15. 15

    Reflection - Add a Delegate to another Delegate's invocation list

  16. 16

    How to add a list of node's name with tooltip in sankey

  17. 17

    What's the correct way to add a collection of file locations to a List?

  18. 18

    macro to check if value is in another list, and if so add today's date

  19. 19

    Cannot add a derived class object to a list of it's base class type

  20. 20

    How to add program to every single file's "open with..." list?

  21. 21

    What's the best way to add the same ajax function to a list of comments?

  22. 22

    Add newly-created List to Sharepoint left navigation's 'Recent'

  23. 23

    Sonata Admin : Add more groups to the service pool's list

  24. 24

    Add owner name in AWS S3 grantee list

  25. 25

    How to add dependency to module's list of dependencies in Angular?

  26. 26

    Dynamically add iron-list and all it's data

  27. 27

    Created a user with user add and it's not listed in users list

  28. 28

    DropZoneJS + JavascriptLoadImage: rotate image?

  29. 29

    Download uploaded file with DropzoneJs

HotTag

Archive