in reply to large file uploads - timeout
Are you positive that timeouts are to blame?
When you say "a script that is capable of uploading smaller sized files", do you mean to say that you tested it on small text files and it worked?
If so, then the problem is probably related to you not binmode()ing your filehandle...
Try doing this:
--perlplexer
Update:
And before I forget... make sure you binmode() both filehandles, the one that you opened for writing and the one that you're reading from;i.e., LOCAL and $file. The open() statement for $file is not shown in your code, make sure you call binmode() right after that open()...
When you say "a script that is capable of uploading smaller sized files", do you mean to say that you tested it on small text files and it worked?
If so, then the problem is probably related to you not binmode()ing your filehandle...
Try doing this:
open (LOCAL, ">$uploadLocation/$schemedName") or dieNicely("Unable to +upload: $!"); binmode LOCAL; # ... rest of your code
--perlplexer
Update:
And before I forget... make sure you binmode() both filehandles, the one that you opened for writing and the one that you're reading from;i.e., LOCAL and $file. The open() statement for $file is not shown in your code, make sure you call binmode() right after that open()...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: large file uploads - timeout
by emilford (Friar) on Mar 22, 2003 at 17:41 UTC | |
by Jenda (Abbot) on Mar 22, 2003 at 17:51 UTC |
In Section
Seekers of Perl Wisdom