Generate File Controller