Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [SandraR] Image upload space issue

Quote Reply
Re: [SandraR] Image upload space issue In reply to
I took another look at your code and the generated URL and realized the mistake.

The line here:
Code:
return qq~$CFG->{build_root_url}/Upload_Image$location~;
is incorrect as it uses $location (which is from File_RelativePath). This is fine for direct access to the file from the file system, but is wrong for access from the web. You need to use a call to File_RelativeURL for the correct url. You can also just can $IN->escape($location) as well.

Adrian
Subject Author Views Date
Thread Image upload space issue SandraR 5225 Feb 8, 2007, 9:17 PM
Thread Re: [SandraR] Image upload space issue
brewt 5134 Feb 8, 2007, 10:15 PM
Thread Re: [brewt] Image upload space issue
SandraR 5117 Feb 9, 2007, 8:25 PM
Thread Re: [SandraR] Image upload space issue
SandraR 5065 Feb 16, 2007, 10:45 AM
Thread Re: [SandraR] Image upload space issue
SandraR 5071 Feb 21, 2007, 8:02 AM
Post Re: [SandraR] Image upload space issue
brewt 5041 Feb 21, 2007, 1:53 PM
Thread Re: [SandraR] Image upload space issue
brewt 5075 Feb 21, 2007, 4:23 PM
Thread Re: [brewt] Image upload space issue
SandraR 5035 Mar 5, 2007, 9:48 AM
Thread Re: [SandraR] Image upload space issue
brewt 5009 Mar 5, 2007, 2:36 PM
Thread Re: [brewt] Image upload space issue
SandraR 5004 Mar 5, 2007, 2:43 PM
Thread Re: [SandraR] Image upload space issue
brewt 5005 Mar 5, 2007, 4:03 PM
Post Re: [brewt] Image upload space issue
SandraR 5003 Mar 5, 2007, 4:47 PM
Thread Re: [SandraR] Image upload space issue
brewt 5009 Mar 5, 2007, 5:49 PM
Post Re: [brewt] Image upload space issue
SandraR 4950 Mar 13, 2007, 5:17 PM