Gossamer Forum
Home : Products : Gossamer Links : Discussions :

file uploading question -- add.cgi form

Quote Reply
file uploading question -- add.cgi form
Hi all,

I have file column in links talbe and have no problem uploading file through the add link form in admin interface. I am not sure how to edit the form for add.cgi. I did this

<form action="cgi-bin/prot/add.cgi" enctype="multipart/form-data" method="POST">
<input type="file" name="my_file" value="" size=30>

(my_file is the name for my file column).

When I submit a link with a file as a user and then go to admin to validate the link, the link "download file" or "view" are just underlined instead of being hyperlinked, so I could not view or download the file. Is there anything wrong with my add.cgi form?

Thank you for any input.

Long
Quote Reply
Re: [long327] file uploading question -- add.cgi form In reply to
That's strange, are you still having that error? The links for "download" and "view" should only appear if these is an attached file. It might be worth taking a peek at the HTML or rebooting and seeing if your browser is doing something funny.