in reply to Problems Uploadng a file

It appears to be that you are opening OUTF for read which will not exist, so you get "test.gif" - Bad file descriptor error.
open(OUTF, "$directory$filename") || Error; ...should be... open(OUTF, '>', "$directory$filename") || Error;

Replies are listed 'Best First'.
Re^2: Problems Uploadng a file
by lmck2 (Initiate) on Sep 13, 2011 at 17:53 UTC
    I made the change. I am still getting the error - no change.