Determine the file format and schedule file upload