php file upload size question

glossyx1

New Member
I know you can control the size of uploads in PHP using \[code\]$_FILES['userfile']['size'] > XXX\[/code\]My question I suppose is performance related.When you upload a file, my understanding is the whole file gets uploaded to a temporary location, and then you have access to \[code\]$_FILES\[/code\] What happens if a user attempts to upload a \[code\]10gb\[/code\] file? (as an example of a very large file)If a large file is attempted to be uploaded, does this waste server bandwidth as the file needs to be uploaded before it can be processed/validated.I know PHP has like timeouts etc but I'm curious if there is a performance impact from users attempting to upload very large files, even if (for example) the max file size is 2mb.Is this a concern or something unavoidable and just to not worry.Thanks.
 
Back
Top