Perl has built-in methods to receive uploaded files. You can read one article about this here.
By default script saves files to folder "/home/uploads". You can modify code in any text editor.