Perl has built-in methods to receive uploaded files. You can read one article about this

By default script saves files to folder "/UploadedFiles". You can modify code in any text editor.

fileupload.pl code sample: