paths to uploads not working on new server

6 posts by 2 authors in: Forums > CMS Builder
Last Post: June 2, 2010   (RSS)

Re: [paulmac] paths to uploads not working on new server

By Jason - June 2, 2010

Hi,

Which field are you using to output the path? For thumbnails, there are 2: 'thumbFilePath' and 'thumbUrlPath'. The thumbUrlPath would be a relative path, so it would probably be the best to use.

Are you putting anything before you output the path?
Once you move your domain name completely, will the URL path be the same as it was on the old server?

Let me know and we'll see what we can do.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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

Re: [Jason] paths to uploads not working on new server

By paulmac - June 2, 2010

Hi Jason

Not sure what you mean about the field being used to output the path. Where should I check this?

Thanks

Re: [paulmac] paths to uploads not working on new server

By Jason - June 2, 2010

Hi,

I mean how the path is actually being outputted to the page. It would be the php code inside your img tag.

It might look something like this:

<img src="<?php echo $upload['urlPath']; ?> " />

If you can find this, let me know what's there.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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

Re: [Jason] paths to uploads not working on new server

By paulmac - June 2, 2010

Hi Jason

this is the code that is generated:

http://ipaddress/cmsAdmin/uploads/thumb/test.jpg

Using this the image is not found.

If I put the following code in the browser it shows the actual image


http://ipaddress/~mydomain/cmsAdmin/uploads/thumb/test.jpg

So the image is actually uploading, but the path isn't correct.

Re: [paulmac] paths to uploads not working on new server

By Jason - June 2, 2010

If you could attach your .php file, or if you don't want to post it, email it to me at jason@interactivetools.com. I can take a closer look for you.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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