fix upload, read from file