Gossamer Forum
Home : Products : Gossamer Links : Discussions :

File Save Location? Path or URL?

Quote Reply
File Save Location? Path or URL?
File Save Location? Version 2.05

Is this a path or a url it is looking for?


Thanks for your time,
-Evoir
Quote Reply
Re: File Save Location? Path or URL? In reply to
Hi,

It's a path on your system where the files will be saved.

You can access the file through the .cgi only right now:

jump.cgi?ID=the_link_id&view=column_name

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: File Save Location? Path or URL? In reply to
Hi Alex,

So, you confused me.

It is a system path, so it would look like:

/path/to/file/save/location

Right?


can you explain what you meant by:
You can access the file through the .cgi only right now:

jump.cgi?ID=the_link_id&view=column_name


Do you mean in the templates?


Thanks for your time,
-Evoir
Quote Reply
Re: File Save Location? Path or URL? In reply to
Hi,

Correct, you would enter /path/to/file/save/location in the editor when adding the column.

If you wanted to display this file to a user, (i.e. if it is an image), or present them with a link to download the file (i.e. if it's a word document), then you must go through jump.cgi to get the file. In your template you would do:

<img src="<%db_cgi_url%>/jump.cgi?ID=<%ID%>&view=MyColumn">

to view it as an image, or:

<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>&view=MyColumn">

to give the user a link to download the fiel. MyColumn would be the column name you added.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: File Save Location? Path or URL? In reply to
Thank you. May I suggest we add this thread to the FAQ?

Thanks for your time,
-Evoir
Quote Reply
Re: File Save Location? Path or URL? In reply to
You can submit it yourself.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: File Save Location? Path or URL? In reply to
Hi Alex,

A couple of questions regarding the uploads...

Is there any loss in speed having to call the image through the cgi? I've got an image associated with every link in the directory, and with 12-15 on a page would this slow it down more than just referencing the image directly?

Also, I noticed that each image file gets its own directory. Each of my links has 2 files, and I use 2 different upload fields in the admin area to add them. Is there a limit to the number of directories a unix system can have? eg. If I have 1000 links, that will be 2000 individual directories within my master images folder.

Another one... if I wanted to call on the images on a seperate page from anything that gets parsed through links, with the numbered directories etc, is there a way to do it?

Cheers,
Regan.


Quote Reply
Re: File Save Location? Path or URL? In reply to
Hi,

1. We are working on a much simpler way to call the images if you have them in the web tree. Basically, you will be able to use any of the properties as tags. I wouldn't recommend jump.cgi if you are displaying a lot at a time, and are not under mod_perl.

The hashed structure limits itself to 10 directories, so it won't keep growing.

As for calling the images, can you explain a bit more what you mean?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: File Save Location? Path or URL? In reply to
Hi Alex,

It sounds like what you're working on is what I'm after.

What I've got is another php script that also references the images associated with each link. The way I've got it at the moment I'm just ftp'ing the images up into their individual directories, a hi-res and thumbnail, then just <img src"///img.gif"> referencing them directly without going through the links cgi scripts.

So, with the new uploads system I just need a consistent way to reference the images in the web tree.

Hope that makes sence!? :)

Regan.


Quote Reply
Re: File Save Location? Path or URL? In reply to
Hi Alex,

In regard to your comment:

"I wouldn't recommend jump.cgi if you are displaying a lot at a time, and are not under mod_perl."

Is there currently another way to reference the images from within a template without going through jump.cgi? Or is the other way what you're working on at the moment?

Cheers,
Regan.

Quote Reply
Re: File Save Location? Path or URL? In reply to
Hi,

Have a look at:

http://gossamer-threads.com/p/154806

Cheers,

Alex

--
Gossamer Threads Inc.