When trying to upload a csv file I get the following message. Changing the extension to txt works fine though but still a small bug.
"The specified file test.csv could not be uploaded. Only files with the following extensions are allowed: jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp."
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | added-file-extension-validators-1399222-1.patch | 809 bytes | joelstein |
Comments
Comment #1
joelstein commentedThis is because the default file extension validators are used. Since the module can only process txt, csv, and optionally xls, these extensions should be passed explicitly to file_save_upload. The attached patch accomplishes this.
Comment #2
joelstein commentedFixed: https://drupal.org/commitlog/commit/13582/411c4baf363501ae67d39909e3a7ec...