fixed uploading from local file