Check filename

Check filename to handle files left empty in the submitted form.
Handling of select fields (as Array)

Only last option selected in select with multiple option was parsed.
Paths properly treated

os.tmpdir doesn't return trailing slash so it didn't work.
One more path changed

I left a path.
Merge pull request #3 from fsanzv/master

Fixes