in reply to Re^2: Problems Uploadng a file
in thread Problems Uploadng a file

This does not do anything on open() failure:

open(OUTF, '>', "$directory$filename") || Error;

This does not define a subroutine:

Sub Error{ print " error - $! "; }

This would have helped:

use warnings; use strict;