Loading...
 
Skip to main content

Features / Usability


How to reference the directory path for Image Galleries

I am feeling the weight of being a newbie here, so please bear with me. I've been struggling for over an hour to get my local tiki install to upload images(doing development before going to a live site). I would like to store images in my Image Galleries in a directory rather than the database itself. If I set the Image Gallery options to storing in the database, the upload works fine, but when I try to reference the directory I've setup to use it does not.

The directory is located (from root on my local drive) in /var/www/tiki/imggallery

(yes, I know I should move it somewhere else, but I want to get it working before I muck even more with it).

I have tried many different ways to reference this (at first I thought it was relative to the tiki home install (in /var/www/tiki/), so I used /imggallery/ which did not work. I've tried a number of variants since but nothing seems to work. Can someone please give me some suggestions? I've modified permissions of the directory to 777 for now, so I know it is not the permissions. The only error message I get is "Upload was not successful".

Any ideas would be welcome.

Thank you,
Sean


I did in fact, before I posted the message. I quote:

Path characteristic checklist:


* Has a trailing slash.
* Is specified from the root.
* Is in a separate folder from Tiki, for better security.
* Has its permissions set (e.g. via the chmod command) to allow uploads by the webserver user.

* Has enough space to allow storage of your expected image volume.


I specified my directory from the root, starting at /var/www/tiki/imggallery/. As well, I tried from the localhost root /tiki/imggallery/.

All of my attempts had a trailing slash

My folder is not separate from Tiki (is this the problem?), but it is a new custom directory.

The permissions on the folder currently are 777, so that should not be the limiter.

There is more than ample space as it is a local drive

Am I overlooking something here?

Thank you,
Sean

Hi,

I thought I was having this problem today and read your inquiry. It sounds like the same thing, but the problem with mine was the size of the image that was not letting it work. The default was 100 px and my images were 460. I had to change the default size under the configuration and it started working then. So it turned out that it was not a problem with the directory path as I had thought.

Sean,

I went back to my site and looked at my directory path. I do not have a beginning slash for my directory: images/uploads/ That is it.

Carma


That is great Carma, it lead me to the right source of the issue. While the file size was not the problem, the referencing directory certainly was. Knowing how your set was set up helped a great deal.

Thank you,
Sean