Add file extension to post file