Adding images

I'm very happy with Drupal. It allows me to add just the functionality I require for this site. Adding images is causing me more problems than anything else, mainly because I still want to use the filtered html input format. That format allows for others to add content and comments, but strips out html code that could compromise the site.

I started with image.

Same process as usual, download, copy to host, expand into the right directory, then in Drupal enable the module, check role permissions and perform the administration by module.

Then came the problem, part of  the image module adds a folder to the site and requires a subfolder. The problem comes that if you let Drupal create the folder structure, then you won't have permissions to create the import directory. I had to rename the image folder to get rid of it temporarily, create the folders manually including those required by the new module. Then I find out that Drupal doesn't have permissions to write to the new folder. I got it to work by giving permissions to the new folder. I've never been a great fan of having any file or folder with those permissions, so I changed that back to something a lot safer once I'd proved it work.

I know what I want to do with the folder, from having played on my local test server. I deally I'd assign ownership of the folders to the web user, apache or similar and then the permissions can stay safer.

I can tackle CPanel and see if there's a way of assigning ownership like chown, however I've seen enough about security issues that chown functionality isn't present in most cpanels now.

It's a conunundrum then. A bit more research and I'll find a safe way of allow others to add images. Currently, I'll keep it so that I can upload images to the site directly and then link to them after.

With img_assist as well, there's a lot more functionality that I'd like to add.


Technorati Tags:

Trackback URL for this post:

http://www.awardsounds.co.uk/trackback/41