Bug with custom upload directory?

17 posts by 6 authors in: Forums > CMS Builder
Last Post: December 29, 2012   (RSS)

By weblm - May 17, 2012

Ok, so I'll give my details first:

Interactive Tools v 2.15

Program Directory:
/home/server/public_html/client/cmsAdmin

Website Root Directory:
/home/server/public_html/client/

Upload Directory:
uploads/

Upload Folder URL:
/cmsAdmin/uploads/

----------------------------------

First off.....I'm assuming that is all correct? Seems to be working ok.

So I am creating new sections and each will have an upload field. I want to group the uploads into subfolders of the uploads/ directory.

So.....for my section called Press Room......I have set in the custom upload directory settings:

Directory Path:
pressroom/

Ok this looks correct....it's relative to the uploads/ folder in settings.

Folder Url:
/cmsAdmin/uploads/pressroom/

This one HAS to be this path, even though it says it can be relative to the Upload URL above.....it can't. If I make this just pressroom/ it will put the links in the web root.

----------------------------------

Here's the issue......these settings about do work. However, the first time I go to create a new record in the Press Room section.....CMS Builder creates the "pressroom" uploads folder at the same level as "uploads". However, the actual uploaded file does go into "uploads/pressroom/".

1) Any idea why it's creating these empty folders?
2) In General Settings....should the Upload Directory be the full server path? Or is it supposed to be relative to the Program Directory?

Thanks!

-Kevin
LM

Re: [kblm] Bug with custom upload directory?

By Damon - May 17, 2012

Hi Kevin,

In General Settings, the Upload Directory needs to be the full path:
/home/server/public_html/client/cmsAdmin/uploads/

Also, make sure that any custom folders that you are publishing into are setup with the full directory path and include the 4 thumbnail folders, even if you aren't creating thumbnails.

Try this out and let me know if this solves it or there are any other issues.

Thanks!
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] Bug with custom upload directory?

By weblm - May 17, 2012

Hi Kevin,

In General Settings, the Upload Directory needs to be the full path:
/home/server/public_html/client/cmsAdmin/uploads/

Also, make sure that any custom folders that you are publishing into are setup with the full directory path and include the 4 thumbnail folders, even if you aren't creating thumbnails.

Try this out and let me know if this solves it or there are any other issues.

Thanks!


After I change the Upload Directory in General Settings......in the section record itself......for the Directory Path....should that just be "pressroom/" ? I don't need the full path in the section record do I?

Kevin
LM

Re: [Damon] Bug with custom upload directory?

By weblm - May 17, 2012

Ok just to note.....when I change the PAth in General Settings to:

/home/server/public_html/client/cmsAdmin/uploads/

And I keep the directory path in the record as just "pressroom/"

I still get the empty folder created up in the cmsAdmin level.

FYI...I did create the "pressroom" folder in "uploads" and it has all the 4 thumbnail folders.

-Kevin
LM

Re: [Damon] Bug with custom upload directory?

By weblm - May 17, 2012

Damon,

Ok, putting the full path in both seems to have solved the issue.

I'll let you know if it happens again, but so far looks good. The empty directory wasn't created.

You should probably make note to change the instructions for that section.

The instructions for the directory path are:

Example: custom/ (relative to Upload Dir in General Settings)
Example: /home/lmdianet/public_html/fickewirth/cmsAdmin/uploads/custom/


And for folder URL are

Example: custom/ (relative to Upload URL in General Settings)
Example: /cmsAdmin/uploads/custom/



Those are what confused me. I think in the end.....those DO need to be relative to the server settings. If I move this from our Dev server to the clients....I not only have to update the general settings.....but each and every section.

Thanks again!

-Kevin
LM

Re: [Damon] Bug with custom upload directory?

By rconring - May 18, 2012

I too am scratching my head over this issue. I assumed that, to make it more portable, one would only have to enter the subfolder and it would be appended to the root path so the root path would not be stored in the data.
I too created a ton of folders outside the uploads folder before I realized that nothing had changed ... I still have to enter the full path.
I agree ... the example is slightly misleading.
Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987

Re: [kblm] Bug with custom upload directory?

By Damon - May 18, 2012

Hi,

The custom uploads directory path relative to Upload Dir in General Settings is suppose to work.

I'm going to look into this further and get one of our senior programmers to assist.

I will post an update as soon as I have know more.

Thanks for pointing this out.
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] Bug with custom upload directory?

By sublmnl - July 2, 2012 - edited: July 3, 2012

I have mentioned this one too and found the weird foldering issue. How/what do I put in the general settings and then still override it per section?
This needs to go back the way it was a few dot versions ago.
Please
This doesn't make sense to me why it is this way but it works.
See attached for the section IF I leave the general settings location alone.
Attachments:

picture-3_003.png 34K

Re: [sublmnl] Bug with custom upload directory?

By Jason - July 12, 2012

Hi,

Everything is set relative to what is set up in General Settings. Normally, General Settings sets you up with the cmsAdmin/uploads/ path. If this is the case, setting a custom directory is set up relative to this.

for example, if you set a custom directory of "custom/", files would be uploaded to cmsAdmin/uploads/custom.

Hope this helps clarify.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/