Custom Upload Directory not recognized

4 posts by 2 authors in: Forums > CMS Builder
Last Post: August 20, 2011   (RSS)

By MisterJim - August 19, 2011

I'm working on 2 separate CMS Builder site on 2 separate servers from 2 separate hosting providers.

On one of them I have no problem at all setting custom upload directories simply by typing the new upload directory into the appropriate fields. For example, if my normal upload directory has been set to be '/home/####/public_html/images/uploads/' , then the custom upload directory is simply set to something like 'gallery/' when, in fact, it is a subdirectory to the 'uploads' directory mentioned earlier.

On the other server, I have to put in the entire custom upload path of '/home/####/public_html/images/uploads/gallery' in order for it to be recognized by the CMS.

BOTH CMS's are version 2.11, the latest as of the date of this post.

I'm going to assume that there's some apache or PHP configuration that's causing this behavior on the 2nd server, i.e., requiring the full path for the custom directory.

Any ideas from you guys?

Jim
WebCamp One, LLC



Websites That Work

Re: [Mr Jim] Custom Upload Directory not recognized

By Dave - August 19, 2011

Hi Jim,

What do you mean by "not recognized", are you getting an error?

And does the /gallery/ subdir exist under the /uploads/ folder on bother servers?

Let me know and I'll try to help. Thanks! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Custom Upload Directory not recognized

By MisterJim - August 19, 2011

Hi Dave,

Yes, the /gallery/ subdir exists under the /uploads/ folder on both servers.

As for what I mean by "not recognized," I mean that when I try to create a record I get an error message in the space where the file upload link normally would be. It simply says that the /gallery/ directory does not exist. If, instead, I go back to the custom upload field area and prefix the custom upload directory with the full upload dir path URL, then everything works fine.

I've got it working now using the full upload dir path method, so I'm not in trouble with this site. In fact, I'm done with the project. However, I was just curious as to what caused this since it wasted an hour or so of my time trying to figure it out and I would like to know how to fix it should I run into it again on my next CMS project.

Jim
WebCamp One, LLC



Websites That Work