in reply to http POST replies

Like everyone said above me CGI or a module alike for your form inputs, but as i look at your code your getting the file name from a form input so using taint or make sure that name does not go out of its boundary's.

Unless you are 100% sure that only trusted people will be using that code only.

Replies are listed 'Best First'.
Re^2: http POST replies
by Anonymous Monk on Aug 19, 2008 at 12:38 UTC
    Another way is to generate (perhaps with Data::UUID) a safe filename (ex fooBAR), and create associated metadata file (fooBAR.meta) that contains uploaded name, uploader ...