| Previous · Next | |
| User | Message |
|
bcnx
|
Date: 3/27/2006 1:36 pm · Subject: When uploading files/images they have a different location than the URL points to. · Rating: -1
Hi all, ran into something peculiar on WebGUI 6.8.7: when I upload a file or image, the URL points to a different place in "uploads" than the file is actually stored. Obviously the image is never chown, since not found. What goes wrong here? B@rt --- (Edited on 3/27/2006 9:36 pm [GMT+0200] by bcnx) --- |
| Back to Top |
Rate [ | ]
|
|
crythias
|
Date: 3/28/2006 5:56 am · Subject: Re: When uploading files/images they have a different location than the URL points to. · Rating: -8
Files and images get a "friendly" URL -- you tell it in the Edit portion of the Asset screen -- and an "unfriendly" url that is stored in the uploads directory defined in webgui.conf [your.domain.conf]. That directory must exist, must be chowned with the user under which apache runs (www or nobody or apache), given write permission by the user, and *may* need to be symlinked -- ln -s /path/to/uploads /path/to/DocumentRoot -- under DocumentRoot. To reference this file or image, you would use /\FileUrl(/friendly/url); exactly where you would type /path/to/file. If you'd like to simply include the file or image as is, then you'd use /\AssetProxy(/friendly/url); |
| Back to Top |
Rate [ | ]
|
|
bcnx
|
Date: 3/28/2006 2:33 pm · Subject: Re: When uploading files/images they have a different location than the URL points to. · Rating: 6
Hi, thank you for your reply. Perhaps I also should have pointed out that the file or image points to an "unfriendly" URL, that, once clicked, shows an empty folder. I found this in the logfiles: Couldn't call method editSave on asset for url: root/images Root cause: $param->upload_tempname($req): can't make spool bucket at /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/APR/Request/Param.pm line 37. We've discussed this yesterday on IRC (I was "root") and you pointed out to me that this could be due to an old version of Perl (I have 5.8.3 in stead of 5.8.7). I'm upgrading tonight to see if this fixes things. Thank you, B@rt --- (Edited on 3/28/2006 10:33 pm [GMT+0200] by bcnx) --- |
| Back to Top |
Rate [ | ]
|