Added extension to randomly generated file name in file-upload parser