wrong permissions after uploading

Discussion in 'PHP' started by wizzard, Jan 27, 2007.

  1. #1
    Hello,

    I have a problem when i upload pictures via a form then i cannot download the pictures via ftp because they have wrong permissions.

    How can i change upload permissions so i can download the pictures without problems? they have now this perms -rw.



    Cheers,
    Kris
     
    wizzard, Jan 27, 2007 IP
  2. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #2
    Hi Kris,

    It depends what user your files get uploaded under, you can try to use the chmod() PHP function directly after uploading to set the permissions.

    HTH
     
    SilkySmooth, Jan 27, 2007 IP