plainblack.com
Username Password
search
Bookmark and Share

    

When uploading files/images they have a different location than the URL points to.

User bcnx
Date 3/27/2006 1:36 pm
Views 1434
Rating -1    Rate [
|
]
Previous · Next
User Message
bcnx

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

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);
--
Maintainer of an unofficial WebGUI FAQ Please contribute questions or answers!
When asking questions on this forum, please indicate (at least) which version of WebGUI you are using. Optional, but sometimes helpful, are your Operating System name and version, PERL version, and Apache version. The little icons next to my picture indicate my IM status. Yes, you are welcome to IM me. I am not an employee of Plain Black. My offers of assistance are subject to the general disclaimer of this discussion board that my answer may be completely wrong. Have a great day!

www.gwy.org U2U crythias on #webgui on irc.freenode.net

--- (Edited on 3/28/2006 6:56 am [GMT-0500] by crythias) ---



Back to Top
Rate [
|
]
 
 
bcnx

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 [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved