.csv file upload becomes .csv.txt

See all posts Reply

.csv file upload becomes .csv.txt new!
by Thomas Dalbert, 16 years, 4 months ago
The class consistently adds the extension .txt to a CSV file with the extension .csv
In other words, sample.csv becomes sample.csv.txt

This is the case even if I allow ALL mime types:
$handle->allowed = array("*/*");

Is there a way to keep the original extension?Reply
Re: .csv file upload becomes .csv.txt new!
by colin, 16 years, 4 months ago
It is a security feature, adding .txt to files which MIME is text.

You can deactivate it using the following parameter:
$handle->no_script = false;
Reply