fixed file reading on input type=file