I clicked the Image icon, got the popup, then clicked the UPLOAD tab
Then, browsed to a local image and clicked to upload it.
I could see something was happening, but I couldn't find the image later to add it to the article that I was writing.
1. Where are uploaded images stored?
2. How can I change their location?
Looked through the wiki, did searches, but no luck so far. Any help MOST appreciated, thanks
Thu, 05/03/2007 - 05:51
#1
RE: Upload Image - where are they stored ?
Cheers
RE: Upload Image - where are they stored ?
Definitely need this for my visitors. They'll wonder what happened to their pics. Thanks
RE: Upload Image - where are they stored ?
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/images/userfiles/' ;
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '/home/-mysiteusername-/public_html/images/userfiles/' ;
- so setting the absolute path seemed to make a difference. I could be totally wrong, I tried lots of things.
.. theres a couple of config files .. im still dizzy from the sheer frustration of wasting the last 3 hours trying to fix this.
My only problem now is that the filemanager uploads images to:
images/userfiles/Image
whereas in the image pop-up - in the 'upload' tab - using this uploads to:
images/userfiles/image
.. or maybe its the other way around ... whatever
lets see .. should I spend another 3 hours trying to fix that? ...
grrrrr
using gd thumbs as well.
Thanks to anyone that can help - just where to change that single character - from "i" to "I" in "image"?
I'll find it eventually, but spending this much time is driving me broke. grrrrr
.. sorry for bad vibes, but you know how it is.
RE: Upload Image - where are they stored ?
well done garlicbred - you've saved my life (or at least my hair!!). I've spent hours on this. If you don't set the file paths up as you say they end up in a directory called publi or publi.. at the same level as public_html which is not much use (took me ages to find this - and may answer others who ask where these files go).
You may be able to fix your case problem with the fix mentioned in this thread:
http://sourceforge.net/forum/forum.php? ... _id=257180
snippet as follows from bigrabbit:
This a bug for upload/php/upload.php.
You should modify line 89 "$sServerDir .= $sType . '/' ;" to "$sServerDir .= strtolower($sType) . '/' ;" and line 115 "$sFileUrl = $Config["UserFilesPath"] . $sType . '/' . $sFileName ;" to "$sFileUrl = $Config["UserFilesPath"] . strtolower($sType) . '/' . $sFileName ;"
The Image Dialogie Box still doesn't seem to show the image (this may be because of my set up as I do the editing via a secure server), but they show up fine when the edited page is displayed to users.
Hooray! I'm off to celebrate.
Thanks again.
RE: Upload Image - where are they stored ?
I have no probs viewing the uploaded files in the file browser. I think theres separate settings for the 'upload' and 'file browser'.
filemanager/browser/default/connectors/php/config.php
also connector.php is worth a look - i changed
$GLOBALS["UserFilesPath"] = '/UserFiles/' ;
to
$GLOBALS["UserFilesPath"] = '/userfiles/' ;
I use 'userfiles' - but that will change depending on one's own filenaming preference.
I really dont know whats what, the above edit may have no effect.