Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: write to .jpg error problem

by haukex (Archbishop)
on Jul 01, 2019 at 21:27 UTC ( [id://11102275]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11102275]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found