Sounds less a server config problem and more of a code problem...are you keeping the entire contents of the file in memory as you 'upload'? Post the relevant code