fixing file uploader read