ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Wrong file permissions on uploaded images

February 01, 2011 4:10pm

Subscribe [7]
  • #1 / Feb 01, 2011 4:10pm

    Roi Agneta

    352 posts

    I am having this issue on at least two different sites, one running v 2.1.0 and the other v 2.1.1.  In both cases the file permissions are being set to 640 on uploaded images, on a completely random basis.  I can upload loads of images with no problem, then for no apparent reason one of them ends up not displaying on the website (but OK in file manager and in the Channel Edit page).  I check file permissions and sure enough it is set to 640 - I manually set it to 644 and all is fine.

    This happens when uploading files using a file type field or manually inserting an image file in one of the Channel text fields.

    Is this a known bug?

  • #2 / Feb 02, 2011 9:35am

    Sue Crocker

    26054 posts

    Hi, Roi. I’d be tempted to download 2.1.4 beta and test with that on that server. I normally do 666 on file permissions except on EngineHosting.

    How intermittent is it?

  • #3 / Feb 02, 2011 11:03am

    Roi Agneta

    352 posts

    Hi Sue,

    It happens about once for every 10 uploads.  I do plan to update to 2.1.4 to deal with all those annoying file manager issues, but think I will wait for the release :coolsmile:

    BTW, I just completed a site using 2.1.3 and uploaded quite a few images with no problem, so I wonder if whatever it is was addressed in that release?

    Thanks for the follow up!

    roi

  • #4 / Feb 02, 2011 5:34pm

    Ingmar

    29245 posts

    To be honest, this sounds like a server related issue, especially if it’s happening randomly. Have you asked your host about it? Does it fail consistently for certain images, or is it really random?

  • #5 / Feb 07, 2011 6:16pm

    Adam Drobotij

    1 posts

    I’m running Version 2.1.3 Build 20101220 and all the images I upload have permissions 640. The containing folders are viewable by all. I can change them by hand for the time being, but when I hand this site over to my client, they are going to need to be able to upload images via the admin area and not ssh/ftp. Please advise.

    Thanks in advance!
    Adam

  • #6 / Feb 08, 2011 1:05pm

    Brandon Jones

    5500 posts

    Hi Adam, and welcome to the forums!

    Please consult your host on this since it’s likely a server configuration issue.

    Roi, let us know what you find after doing the same, and please upgrade to 2.1.3 as well.

  • #7 / Mar 21, 2011 1:17pm

    Emily Heath

    197 posts

    I’m encountering the same problem. Intermittent permissions problems on the image file uploads. Some times the file uploads fine, other times it comes up as a broken link (error 403 if I try to view the image) and I find the image on the server is set to 640 (when it works, image permissions set to 644).

    v2.1.3 Build: 20101220

    I’m trying to get some response from the host but I thought I’d log it here too since there are some others with the same problem.

  • #8 / Mar 22, 2011 5:57am

    John Henry Donovan

    12339 posts

    Emily,

    there is a longer thread on the subject here and a bug report available here

  • #9 / Mar 22, 2011 1:41pm

    Emily Heath

    197 posts

    Hi John,
    Thanks for pointing me in the direction of that thread. Very useful. Think I’d passed over that one earlier but hadn’t seen the relevance. I’m also using Network Solutions like Roi there was so comments about that host were helpful. 

    I’m currently getting my client to try out the (now freely available) Safecracker file field in place of the file manager as a work around (seemed to work but needed more testing). But I still have a permissions problem with captcha image creation and I’m using that to put to the hosts.

  • #10 / Mar 23, 2011 7:44am

    John Henry Donovan

    12339 posts

    Emily,

    do you want to create a new thread for your captcha issue and we can examine that individually?

  • #11 / Mar 23, 2011 12:37pm

    Emily Heath

    197 posts

    Hi John,
    Thanks for the suggestion to create new thread, but I’m not sure if it will be appropriate to look at here as it is using Solspace’s Freeform add-on. I have posted about the problem on an existing thread on their forum but they’ve pointed to the server as a problem and recommended using accessible captcha as a work around. Let me know if you the captcha field then still falls into native EE support and whether you think it worth pursuing here.

    On other news, the Safecracker file doesn’t seem to be the work around I need. I am still seeing erratic behaviour on the permissions applied to the files created on the server saved with this file field. I’m presuming then that this reinforces the reasoning that it is the server at fault?

  • #12 / Mar 24, 2011 5:10am

    John Henry Donovan

    12339 posts

    Emily,

    Let me know if you the captcha field then still falls into native EE support and whether you think it worth pursuing here.

    Create a standard contact form from the docs in a blank template and add the captcha tags
    Make sure in your Email Configuration that Enable CAPTCHAs for Tell-a-Friend and Contact emails is turned on

    If they don’t show then create a new thread and just reiterate all the things I asked you to do and we can investigate it.

  • #13 / Apr 04, 2011 4:49pm

    Emily Heath

    197 posts

    Hi John,
    Finally I am getting back to you.  I kept pressing the hosts to look at fixing the server issue that was behind the contact form captcha image permissions, and it seems that they have actually fixed this in the end.

    However, I am now back to the original problem which I thought I had found a work around for using Safe Cracker file field. Even with this file field in place, the images uploaded via are getting saved with the wrong permissions, intermittently.

    I see there is a Bug report for this, but I’m surprised it is set as ‘Minor’ severity… this prevents my client from publishing entries on their website - surely this is ‘Critical’?  I know I could tell them to upload via the File Manager first and then find them via the Edit entry form, but apart from being slower, they will then encounter a problem I think I’ve seen reported elsewhere on the forum where the upload doesn’t show any confirmation.

  • #14 / Apr 04, 2011 5:10pm

    Sue Crocker

    26054 posts

    Hi, Emily. I upgraded the bug report to be Minor - High.

    What I’d do is add a note to the bug report so you’ll be notified when a fix is being worked on for this issue.

  • #15 / Apr 14, 2011 9:13am

    Emily Heath

    197 posts

    I’ve started a new thread here about my problem with permissions on captcha images being created on the server which has reared its ugly head again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases