improving checks for existance of uploaded file and read permissions