title: How to detect delimiter in temporary file?
body: <p>CSV file uploaded, and saved as .tmp file in server's /tmp folder. Encountered problem to get its delimiter. It could be either ';' or ','. How I can check this from .tmp file? As I understand it can't be done with tmp file, so I need to save it as .csv and then check for delimiter. Is it the only way to do this?</p>