changing the file format once a file is uploaded