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."

Comments

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new809 bytes

This 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.

joelstein’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.