Gossamer Forum
Home : Products : Links 2.0 : Customization :

add.cgi upload mod

(Page 2 of 2)
> >
Quote Reply
Re: add.cgi upload mod In reply to
Paul, since you've done this before on your Links, would you be willing to modify mine for a fee? Let me know, you can email me, rmckillen@screamingv.com.

Ryan

Quote Reply
Re: add.cgi upload mod In reply to
Hi,

I just have a few installations to take care of and then I'll pm you.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: add.cgi upload mod In reply to
Hi,

I am trying to incorpore PS Uploader to add.cgi too but i don't know what to do. I read all this messages but with not good results, could you please tell me where i must add:

my ($bytesread,$buffer);
open(OUTFILE, ">$in{'File'}");
while ($bytesread=read($in{'File'},$buffer,1024)) {
print OUTFILE $buffer;
}
close (OUTFILE);

and what more I must add to make it work. Thanks in advanced and I am sorry for my bad english (I am from Argentina)... I wait for your answer...

Jorge

Quote Reply
Re: add.cgi upload mod In reply to
sub process_form

and make sure that your uploaded field is called File, if not, then of course, the codes won't work.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: add.cgi upload mod In reply to
Hi!

OK but in what file? Is it in links.def?
Bye and thanks...

Jorge

Quote Reply
Re: add.cgi upload mod In reply to
Uh...IN the add.cgi! Look at the thread title --> add.cgi upload mod...Wink and also re-read the previous replies...where it states hacking the add.cgi script...

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: add.cgi upload mod In reply to
hehehe, sorry for the stupid question Crazy
but now I have a problem when I try to add a file it always give me the error:

File (Too long. Max length: 5)

But in the file upload.cgi I have:

$max_size = 150;

Could you please tell me what i am doing wrong?

Quote Reply
Re: add.cgi upload mod In reply to
You need to increase the LENGTH column of the File field in the %db_def hash in the links.def...look for 5 and change it to a larger number.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: add.cgi upload mod In reply to
Hi again,
I am having this problem: when I submit the picture at the site it send the picture with 0kb and with a name as:
C:\Mis Documentos\pl.gif
Could you please tell me what is wrong? and how can I do to make it rename each picture with the ID of the link.
Bye.. and thanks for all..

Jorge

> >