Problem with file upload link

JcAndres

Member
Hi,
I have a file upload in which only allow upload -. jpg and. jpeg, this element is displayed in tables and in the forms with Highslide.

Everything works fine on the original site. but if I migrate from server and hostname, the link of the image links to the previous host.

example

old server fps.cl ---> link to images = h ttp://www .fps.cl/patchtoimage/image.jpg

new server fps2.cl ---> link to image = h ttp://www .fps2.cl/images/paginas/http://www.fps.cl/pathtoimage/BRCB053712.jpg

Any suggestions?

thanks
 
Yeah, that's a kinda known problem we've been wanting to fix for a while. For reasons lost in the mists of time, we store the full URL path in the table for uploads.

The only solution is to run a query on your new database, to replace the old live site with the new one.

update table_name set upload_element = replace(upload_element,'http://old.site/foo','http://new.site/bar')

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top