Hi Jim,

Thanks for your response. I am able to upload the files on the server
to the desired location as you just described. I run into the issue
when I want to view those files by specifying the path of uploaded
files because the path does not lie under the web server root for the
project. So I was wondering as to how will I configure the path to
view these image files. Did any one run into similar situation? May be
I am missing a key point here!!

Thanks

On Jul 31, 2:32 pm, Jim Steil <[EMAIL PROTECTED]> wrote:
> If I understand you correctly, I've done this by specifying that
> directory name in the dev.cfg / prod.cfg configuration files.  I've
> added the line:
>
> motion.uploaddir = '/pywork/turbogears/motion/motion/static/files/'
>
> in the [global] section and then accessed it in my controller using the
> following:
>
> uploaddir = cherrypy.config.get('motion.uploaddir')
>
> Is that what you were looking for?
>
> nossatv_sd wrote:
> > Hi Guys,
>
> > I have been using TG for about 2+ months now and I have run into this
> > issue where I need to serve images on the website from local
> > filesystem. The problem is the images are not under the webpath for
> > the project but rather under a different location on the filesystem.
> > For example, the project is under [PROJECTNAME] under /projects/
> > [PROJECTNAME] where as the images are under /resources/images/
> > [IMAGE_NAMES]. How do I configure the webserver (built into
> > turbogears) to be able to access the images also. Normally I would
> > create Alias or add Directory tag on the Apache webserver, what about
> > if I am using TG webserver instead.
>
> > Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to