in reply to write to .jpg error problem

Can't write to 'localhost/choo/tcimages/176801_1.JPG-14660': No such file or directory ... I have no idea what to do here.

Have you checked if there's a directory like that?

Since the pathname is relative, it's relative to whatever the current working directory is when that open executes. Because the working directory can change, normally absolute pathnames are better; if there's a configuration option somewhere that sets the path for these files, you might want to check that it's set to an absolute path rather than a relative one.

As for the code, note the filename is being passed in as $arg, so this particular code doesn't help, you'd have to trace back where $arg is coming from.

Replies are listed 'Best First'.
Re^2: write to .jpg error problem
by traincity (Sexton) on Jul 02, 2019 at 21:16 UTC
    Thanks very much. I now understand. In the administration file I changed to this:

    $config{'image_upload_dir'}   = 'c:/apache24/htdocs/choo/tcimages';

      One step forward, but another change you wouldn't have had to make had you gone down VM route suggested earlier.

        marto you are too strict :) my zen = understand the dynamics and the statics of human behaviour ...

        Hi.. Sorry I have been overwhelmed with information in these threads. What do you mean by VM? I may understand better now that I am at this point.