newbie: problem with upload and making subdirectories

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
willi32
Posts: 5
Joined: Mon 3. Oct 2005, 23:08

newbie: problem with upload and making subdirectories

Post 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.
If error was well prepared, solution is near.
Pappnase

Post 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!
willi32
Posts: 5
Joined: Mon 3. Oct 2005, 23:08

Post 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

:D
If error was well prepared, solution is near.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
willi32
Posts: 5
Joined: Mon 3. Oct 2005, 23:08

Post 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 :?:
If error was well prepared, solution is near.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

the Images, Categories and Files are Managed by the Database - the reason for that is the Right- and Usermanagement.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
willi32
Posts: 5
Joined: Mon 3. Oct 2005, 23:08

Post 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
If error was well prepared, solution is near.
tamara
Posts: 11
Joined: Wed 21. Sep 2005, 18:44

newbie: problem with upload of images

Post 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.
tamara
Posts: 11
Joined: Wed 21. Sep 2005, 18:44

folder permissions solved images upload issue

Post 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.
willi32
Posts: 5
Joined: Mon 3. Oct 2005, 23:08

Post by willi32 »

You can take a look at

http://de.selfhtml.org/helferlein/chmod.htm

for the meanings of the different permissions.
If error was well prepared, solution is near.
Post Reply