Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

open (OUT, "> $out

Quote Reply
open (OUT, "> $out
Hi all,

everything was fine at my new system. Now i have "harden" the new server in the last days and today i remark that i cant upload files anymore.

In sub attach_file in dbsql.pm (at mine around 874, but my file should be much longer than yours)
there is:

open (OUT, "> $out") or return $self->error ('CANTOPEN', $out, $!);


At this point i cant do the upload; has someone a clue why this could be happen?
All the dirs are chmoded to 777 with wwwrun/nobody as all other files from links.

Think i must somewhere secured the server not to get any uploads, but where?
I have killed the firewall to test if some needed ports are closed, but thatīs not the point.

Hope someone can help.

BTW: I have done the melting between Links and wwwthreads; it is a snap :-)

Robert

Quote Reply
Re: open (OUT, "> $out In reply to
Hi Robert,

$out is defined one line above (assuming you haven't changed it) as:

$out = $self->{attach_dir} . "/$data_id.fil";

So look at what $attach_dir is in the Links.def file. Make sure the server can create files in this directory (needs to be owned by webserver user, or 777).

Cheers,

Alex

--
Gossamer Threads Inc.