Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-24 02:48:18

julian
Member
From: Vancouver BC
Registered: 2009-08-23
Posts: 15
Website

Uploading images

I can’t upload images into textpattern admin. Under the images tab is this warning (in red):
Warning: cannot write to image directory
/home/julian/public_html/dp/images.
Please change file permissions to 777.

Where do I change file permissions?

Offline

#2 2009-08-24 03:22:42

julian
Member
From: Vancouver BC
Registered: 2009-08-23
Posts: 15
Website

Re: Uploading images

Further to my previous question:

After searching through the forum for an answer it appears that changing file permission to 777 presents security problems. Now I’m really confused. Not only do I not know where on the sftp do I change the permission to allow me to upload images, but changing it to textdrive’s recommended 777 code could mean trouble.

Offline

#3 2009-08-24 03:23:09

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Uploading images

log into your web host via ftp. from there you can change permissions. how to do this will depend on your ftp client.

Offline

#4 2009-08-24 03:45:59

julian
Member
From: Vancouver BC
Registered: 2009-08-23
Posts: 15
Website

Re: Uploading images

I can change the individual permission for previously loaded images to 777 on the ftp. But when I drag and drop new images into my images folder on the ftp they don’t appear in textpattern admin images tab due to the permission 777 thing. How do I change the permission so I can go back to uploading images directly through textpatter admin?

Offline

#5 2009-08-24 05:16:30

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Uploading images

you dont want to change the permission of the images. you want to change the permission of the actual image directory!

Offline

#6 2009-08-24 06:19:02

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,732
Website

Re: Uploading images

But when I drag and drop new images into my images folder on the ftp they don’t appear in textpattern admin images tab due to the permission 777 thing

You need to upload images through the Content > Images tab in the backend so that txp can store information about where the image is, its caption, make a thumbnail etc. If you use ftp you bypass txp entirely (it’s not a file permission issue).

Regarding permissions: you can try chmodding the images folder (and the files folder) to 775 from your ftp program and then check the Admin > Diagnostics tab to see if it returns a warning. Otherwise you will need to use 777, but that’s common.


TXP Builders – finely-crafted code, design and txp

Offline

#7 2009-08-24 12:42:43

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Uploading images

The images don’t need 777 permissions. At most they need 666.
The image directory can in some cases need 777 permission, but you should consult your webhost on this to make sure it’s secure. In many cases far more strict permissions still work fine.
What are the permissions currently set for your images directory?

Offline

#8 2009-08-24 15:05:34

julian
Member
From: Vancouver BC
Registered: 2009-08-23
Posts: 15
Website

Re: Uploading images

What are the permissions currently set for your images directory?

It looks as though they are set at 755.

Re: Admin>diagnostics… does this mean there should be a diagnostics tab on the Textdrive admin site?

Offline

#9 2009-08-24 15:20:57

julian
Member
From: Vancouver BC
Registered: 2009-08-23
Posts: 15
Website

Re: Uploading images

ruud wrote:

The images don’t need 777 permissions. At most they need 666.
The image directory can in some cases need 777 permission, but you should consult your webhost on this to make sure it’s secure. In many cases far more strict permissions still work fine.
What are the permissions currently set for your images directory?

Are permissions changed on the ftp under the images folder at txp_images.php?

Offline

#10 2009-08-24 15:33:46

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Uploading images

There is a diagnostics tab in Textpattern, if you first go to the admin tab.
You shouldn’t change txp_images.php, just change permissions on the images/ directory.

Offline

#11 2009-08-24 15:51:01

julian
Member
From: Vancouver BC
Registered: 2009-08-23
Posts: 15
Website

Re: Uploading images

ruud wrote:

There is a diagnostics tab in Textpattern, if you first go to the admin tab.
You shouldn’t change txp_images.php, just change permissions on the images/ directory.

There is no diagnostics tab under Admin in Textpattern. The only tabs I see are: Preferences, Site Admin, Logs, Plugins

Offline

#12 2009-08-24 15:55:17

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Uploading images

Which version of TXP do you use?

Offline

Board footer

Powered by FluxBB