Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Image Upload (According to Manual)

Quote Reply
Image Upload (According to Manual)
I implemented the image mod that is in the manual to my instalation, It works fine and uploads the image, however i've a problem referencing that image because the <%image%> tag refers to the file name, but for some reason the uploaded files do NOT keep the standard naming convention I use, an aditional directory is created when a image is uploaded, how can I prevent this from happening?

Example:

If I upload image test.gif to directory /home/site/www/images/ when I check the directory I find something like:

drwxr-xr-x 2 site site 4096 Mar 2 23:55 1
drwxr-xr-x 2 site site 4096 Mar 3 16:43 2

Why are directories 1 and 2 being created??? It makes then impossible to reference the image from within a template like this <img src="/image/directory/<%image%>"> I can not predict what path I need to use lo link the image.

Last edited by:

jaltuve: Mar 3, 2003, 3:27 PM
Quote Reply
Re: [jaltuve] Image Upload (According to Manual) In reply to
check

http://www.gossamer-threads.com/...orum.cgi?post=159092


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Image Upload (According to Manual) In reply to
Thanks, it works but...

Only when I add the image from the admin, If I add it as a regular user adding a link the files does not get saved to disk, but the DB record is updated ok, why?
Quote Reply
Re: [jaltuve] Image Upload (According to Manual) In reply to
Hi,

Can't say for sure, but I'm about to start playing with the "core" GT routines shortly, and will be upgrading all the sites.

I'm working on trying to re-integrate my back-end image processing into GT's basic image system, then expand it into the image gallery system, with advance file/upload handling, categorization, search & access, and if GT gets their payment gateway working, an access system as well.

I sort of have to start fresh. After the crash, and then the theft of the computer, I'm so turned around, I'm going to just start over, and if I remember a particular problem solved, will try to find the old code.

In the past 18 months a lot of changes have happened in GT code, and in how programs need to work together.

My old sites have so many built in mods, I've lost track of what is mine, GT's or 3rd parties <G>. My BetterBeads.com, BetterBeading.com and BeadBanter.com sites will be starting fresh, and will hopefully also integrate GT Community with GoCart, Links SQL, and Gossamer Forum.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [jaltuve] Image Upload (According to Manual) In reply to
Do you have the enctype in the form tag?

Also do you have the image column in your database set to the FILE type.
Quote Reply
Re: [Paul] Image Upload (According to Manual) In reply to
Thanks Paul, it was the enctype missing. It's already fixed and it works perfect now. thanks.