Gossamer Forum
Home : Products : Links 2.0 : Customization :

File Upload Mod

Quote Reply
File Upload Mod
Here is the much anticipated file upload mod previously posted by Phoenix. I have gathered the info from the forum and a number of other sources. Much thanks to YellowKard who supplied the add.cgi file.

Upload Mod instructions are at:
http://www.journeyit.com/download/uploadmod.txt

The add.cgi file is at:
http://www.journeyit.com/download/add.cgi

I have it working on Unix server but no luck yet with Win. If anyone can get it to work with Win let me know.
Regards,

Christian

Quote Reply
Re: File Upload Mod In reply to
Thanks, Christian! I believe you should provide the add.cgi as .txt file, because the download does not work.

Thomas
http://www.japanreference.com
Quote Reply
Re: File Upload Mod In reply to
Why does it not work. I can download it and open it in my text editor and it looks ok. Are you having problems opening the file or does it not work when you install it.
I will post it as a text file also anyways.

Christian

Quote Reply
Re: File Upload Mod In reply to
Well, add.txt works now, thanks.

Thomas
http://www.japanreference.com
Quote Reply
Re: File Upload Mod In reply to
Can any of you make this work so that we can use it with modify.cgi ??

I have been needing this upload mod to work for modifying links for soooo long. Any help would be great!

P a i n t b a l l C i t y . c o m
http://www.paintballcity.com
Quote Reply
Re: File Upload Mod In reply to
Just installed the upload script onto my test db. It looked like it was working okay but when I went to view the image, it came up as "add resource" -- just like http://www.gossamer-threads.com/p/111323 I tried the solution that was given on the site but that didn't do the trick.

Any ideas?

-----------
Jason Dulberg
Extreme MTB
http://extreme.nas.net
Quote Reply
Re: File Upload Mod In reply to
gotta bump this baby to the top.

Looks like a lot of people are interested in getting this mod to work on the sites but is everyone getting the "add resource" error?

-----------
Jason Dulberg
Extreme MTB
http://extreme.nas.net
Quote Reply
Re: File Upload Mod In reply to
wound there be anyway to mod this so it till upload the images to a folder within the categorie the link is located in?


Quote Reply
Re: File Upload Mod In reply to
For all you fella's having troubles with the upload mod try making the file field the last field in your template. It may seem like this won't matter but trust me. The way the form is processed is dependant that the field is last, Pheonix's mod was always like this and always didn't have a modify.cgi add on, if anyone knows PERL well enough to help out with it I'm sure dozens, if not more will greatly appreaciate it.

.pardon the spelling i was in a hurry, umm i think the spell check is in a different language.

YellowKard
Quote Reply
Re: File Upload Mod In reply to
Yellowkard,
Good point, I had this problem when I initally set up the mod. Also, make sure your Attach or Browse button on your add page is set up correctly. It should be something like this:
<tr><td align="right" valign="top"><font face="Verdana, Helvetica, Arial" size="2">Attach File:</font></td>
<td><input type="file" name="attach"></td></tr>
<tr><td></td><td><input type="SUBMIT" value="Add Resource"></td></tr>

YellowKard,
Did you ever get the upload mod to delete the associated file when it was changed??

Christian

Quote Reply
Re: File Upload Mod In reply to
No, unfortunatly not, I don't know PERL well enough (I know many other programming languages well but not PERL).

YellowKard
Quote Reply
Re: File Upload Mod In reply to
Hi guys!
first of all thanks a lot for your upload script .. thanx god!!
i have a problem . Error

Please do not enter both a URL and a file. If you choose to upload a file, a URL will be automatically attached.

shows up when i try to enter a URL and then later url of picture ..
then at results in link.html i would like to have url AND picture ...

i know it is small problem for you pro, but i'm stucked here :((

thanx a lot in advance

gregor

Quote Reply
Re: File Upload Mod In reply to
Can you give me a link to where your testing it, that should be the quickest way to locate the problem.

YellowKard
Quote Reply
Re: File Upload Mod In reply to
sure .. i'll be glad if you can help me work this out :)

http://www.vstopnice.com/nepre
this is kinda modified links for Ads

just follow the link "Oddaj Oglas" it's in slovene language ...

thanx
gregor

Quote Reply
Re: File Upload Mod In reply to
i forgot to tell you that upload is working Ok if i don't enter URL ... it uploads a file to specific directory

tenx for help

Quote Reply
Re: File Upload Mod In reply to
hi!
what about uploading file (images) and also url of homepage ?

thanx

Quote Reply
Re: File Upload Mod In reply to
Hi!
have you tried to use "delete mod" that Bobsie mentioned in thread?
i'm going to try it today .. i'll post you the results.

thanx


Quote Reply
Re: File Upload Mod In reply to
If anyone wants me to make the file upload mod then I will do because it seems like no-one can get this one to work....

(No offence intended to the person who made it)


Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: File Upload Mod In reply to
Hi PaulWilson,

I would be interested in having you make the upload mod. I have been following the threads as well and have come to the conclusion that it works okay but does not have the ability to work in the modify pages, which is very important.

If you can make it, I will pay you for your services to install it.

Thanks!

Quote Reply
Re: File Upload Mod In reply to
You might want to contact Paul privately via the Private Message option to request his services...or post a paid request in the Custom Jobs Forum.

Regards,

Eliot Lee
Quote Reply
Re: File Upload Mod In reply to
hi!
your url is not available any more?

thanx

Quote Reply
Re: File Upload Mod In reply to
Hi Christian¨!
Are you sure that this add.cgi is correct .... i mean .. everything is working ok except mailing to admin that there is a link waitting for valdiation. All other stuff in Links that uses sendmail and mailer.pm are doing OK. just letting admin for validation ... is on strike ... i'm preety sure that mistake must be in add.cgi.

any idea

thanx
gregor

Quote Reply
Re: File Upload Mod In reply to
wanna tell you that i have figured it out

in part of add.cgi where it says

# Send the admin an email message notifying of new addition.
if ($db_validate_email) {
&send_email
}


should be only

# Send the admin an email message notifying of new addition.
&send_email;
}


then it must work ... this solution worked for me :)

by
Gregor

Quote Reply
Re: File Upload Mod In reply to
Sorry I took a little hiatus from the Forum. The upload mod does work but I did run into the problem you are describing. Your fix should work.
I agree with Paul that the mod has its quirks and I still cannot get it to work on a WinNT server.

Paul, I would be very interested in a mod that can upload and modify the URL and File and remove the old file from the server. Putting the files into a directory structure would be an added bonus. I am currently using the system for a lecture directory for the University of Toronto and that is one of the features that would be extremely useful.

If you get it up and going please let me know.
Thanks.

Christian