Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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
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
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
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
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
Re: Uploading images
Which version of TXP do you use?
Offline