FIX: check file type in simple upload library