read file instead of upload