Question regarding basic help with my upload script
Good subjects are important. Please try to leave out words that do not significantly contribute to the meaning and use the space saved to add ones that do. For example, in your subject the following does not significantly contribute to the meaning: "Question regarding basic help with my ... script".
...fails to allow me to control any conditions such as:
If you want to limit the upload size to avoid a DoS attack then set $CGI::POST_MAX.
If you are asking how to tell the browser that you want it to restrict what it invites the user to upload then you need to look at the HTML of the upload form, not the CGI script that processes the HTTP submission afterwards. (This has nothing to do with Perl).
If you are asking how to check if a string ends with a particular sequence of characters then perhaps something like:
If you are asking how to tell how big a file associated with a filehandle is then you could use something like:
anything you may feel I should also considerYou should consider that the fact that GIF and JPEG are binary formats.
As such you should put the OUT filehandle into binary mode. Also you should not try to copy the file a line of text at the time - because it is not made up of lines of text.
In reply to Re: Question regarding basic help with my upload script