Has anyone managed to get the asp upload connector (not browser i've managed to work that one out) to return the full absolute path of the uploaded file back into the image window?
I'm using fck on a multiple site content management system and by returning images relatively they are showing as 404's on the external sites (i'm using a shared images folder on the admin systems domain).
I've tried changing all sorts but whatever i do i end up breaking the upload function and have not managed to get it to return the full url :-/
Apart from this, i've been using fck for ages and it's fantastic!
Thanks,
Alan
I'm using fck on a multiple site content management system and by returning images relatively they are showing as 404's on the external sites (i'm using a shared images folder on the admin systems domain).
I've tried changing all sorts but whatever i do i end up breaking the upload function and have not managed to get it to return the full url :-/
Apart from this, i've been using fck for ages and it's fantastic!
Thanks,
Alan
RE: asp upload connector and absolute paths
RE: asp upload connector and absolute paths
I have solved this problem.
Edit this file:
editor/filemanager/upload/asp/upload.asp
Go to line 109 and change this:
sFileUrl = ConfigUserFilesPath & sFileName
To this:
sFileUrl = "http://www.mydomain.com" & ConfigUserFilesPath & sFileName
This will change the relative path to absolute.
Re: asp upload connector and absolute paths
Re: asp upload connector and absolute paths
I am not a ASP programer but in PHP I did a simple string search and replace function after the form is posted. You might try something along these lines in ASP. Search your posted string for "/userfiles" and replace it with "http://yourdomain.com/userfiles"