Page 1 of 1
newbie: problem with upload and making subdirectories
Posted: Tue 4. Oct 2005, 00:48
by willi32
Hi forum,
I`m working with a local testing environment setup with xammp 1.4 (Apache 2.0 PHP5) under XP.
PHPWCMS 1.2.5-Dev works fine, but I can`t upload images into the directory "picture".
The file manager indicates the images, but on the harddisk the can't be found in "picture"-directory.
PHP-info says that GD-version is "bundled, compatible with 2.0.28" whatever this means.
The confic.inc.php says the following:
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
Another problem is, that after creating a subdirectory in the picture-directory called "01_picture" the file manager lists this new directory, but it isn´t really on the hard-disk.
I learned much in the last 48-hours, but the problems above weren't solved. Can anybody help.
Willi32
The update on CVS-Version from 30.9.05 didn't change the problem. All folders are set to public.
Posted: Tue 4. Oct 2005, 04:31
by Pappnase
hello
your images will not be uploaded to the pictore folder. You will find the uploaded and takeover files in the filestorage folder!
Posted: Tue 4. Oct 2005, 14:20
by willi32
Thank you for this quick information!!
I uploaded now some files into the phpwcms_ftp. With the button "FTP-Übernahme" they can be listed in the picture-folder.
But if one uses the file picture/image.jpg in a template the image doesn´t appear in the frontend.
I don´t understand the workflow, which is intended with this file-management. Are the files to pe put manually (with a ftp-tool) into the picture/folder? Sorry for asking again but I'm very ethusiastic about phpwcms and hope to be able to "backhelp" in the future.
Thanks for your help
Posted: Tue 4. Oct 2005, 17:18
by pico
Hi
all Files also Images what you upload via the Filemanager from the Backend are stored in the Folder phpwcms_filestorage NOT in the Folder img!
All Files there are renamed by the System by uploading or FTP-Takeover.
If you want to use Images from another Path you can't use a Contentpart like Text w. Image cause they work only with this Folder - just use HTML or WYSIWYG and the HTML-IMG Tag.
Posted: Wed 5. Oct 2005, 01:41
by willi32
Am I right: The file manager allows to create categories and subcategories but these categories are not directories or subdirectories on the harddisk nor can you put files into them.
What is the use of such a feature
Posted: Wed 5. Oct 2005, 08:20
by pico
Hi
the Images, Categories and Files are Managed by the Database - the reason for that is the Right- and Usermanagement.
Posted: Wed 5. Oct 2005, 19:36
by willi32
I see and finally seem to understand or let's say I have the impression that my confusion about the file-managment is going to blow over.
The files listed in the picture-directory of the backend's filemanager mustn't exist in the picture-directory on the hardisk and if they exist on the harddisk they mustn't be listed in the picture-directory of the backend. The filemanager in the backend is more an administration tool but doesn´t physically write/delete files into/out of directory pathes where you want to refer to them. This is a little unfamiliar but has certain advantages, for example I can delete certain "files" out of the file-list in the backend without deleting them on the hard-disk.
An efficient workflow seems to be the following:
1. Upload physically onto harddisk with an external ftp-client into the directory "picture" as well as into "phpwcms_ftp"
2. Open backend and make upload virtually by ftp-takeover (ftp-übernahme) into the picture-"folder" of the backend's filemanager for all pictures which are offered or only for those one really needs for the next working steps.
Sorry for this long text, but it lasted even longer for me to understand.
Deutsch:
Okay, schließlich scheine ich es zu verstehen bzw. meine Verwirrung über das Dateimanagement löst sich in Wohlgefallen auf:
Die Dateien im picture-Verzeichnis der Dateizentrale des Backends müssen nicht notwendig im entsprechenden Verzeichnis auf der Festplatte sein und umgekehrt müssen Dateien, die im picture-Verzeichnis auf der Festplatte liegen nicht im picture-Verzeichnis der Dateizentrale gelistet sein. Die Dateizentrale ist eher ein Übersichtstool, aber schreibt nicht wirklich Dateien per FTP-Übernahme in Verzeichnisse auf die man sich mit einer path-Anweisung beziehen könnte.
Dies ist für eine "Dateizentrale" etwas gewöhnungsbedürftig hat aber Vorteile, da man in der "Dateiübersicht" der Dateizentrale Dateinamen löschen kann ohne diese auf der Festplatte physikalisch zu verlieren..
Entschuldigt den langen Text aber mein Unverständnis hat noch länger gedauert.
willi32
newbie: problem with upload of images
Posted: Thu 6. Oct 2005, 19:33
by tamara
I too am working on my first install of phpWCMS and I am very pleased so far. But I am having problems with the upload and use of images.
I am interested in using the Image option and Image Upload option available in the FCK editor (WYSIWYG page element). What directory is the image placement option looking at? I attempt to Browse my disk and upload image files, all appears to work as expected, but the files are not uploaded. No errors are returned. Trying to create a new directory returns a permissions error.
I have been successful with the Files upload option and have links to download files uploaded via the Files page. But I need novice users to be able to add pages to a WYSIWYG content block.
Thank you.
folder permissions solved images upload issue
Posted: Thu 6. Oct 2005, 22:09
by tamara
When I changed the permissions on pictures/upload from 755 to 777 my issues were resolved. I no longer have problems uploading or placing images with the FCK editor (WYSIWYG content). I can also create folders and upload images to the new folder as well.
But I was wondering if there is a security issue with setting this folder to 777? The pictures folder has permissions of 755.
Posted: Mon 10. Oct 2005, 21:07
by willi32
You can take a look at
http://de.selfhtml.org/helferlein/chmod.htm
for the meanings of the different permissions.