SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Wizard tgavin's Avatar
    Join Date
    Feb 2003
    Location
    FL
    Posts
    1,051
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Local File Upload in Snow Leopard

    I'm building a site and testing it locally. For some reason I can't get a file to upload using a PHP script. The script works perfectly on my server, just not on my Mac.

    I thought it may be a permissions issue, so I opened Terminal and tried to chgrp the folder. I received "Invalid Argument." I can chown and chmod no problem. I can't chgrp, even using sudo or su.

    Any ideas?

  2. #2
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what is size of file that is being uploaded...?
    also see other server config can can create problem for http upload...

  3. #3
    SitePoint Wizard tgavin's Avatar
    Join Date
    Feb 2003
    Location
    FL
    Posts
    1,051
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by frank1 View Post
    what is size of file that is being uploaded...?
    also see other server config can can create problem for http upload...
    64k.

    Yeah, I'm not sure where to look to find out what the problem is. And it's very odd that I can't chgrp.

  4. #4
    SitePoint Wizard tgavin's Avatar
    Join Date
    Feb 2003
    Location
    FL
    Posts
    1,051
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I should also note that I have the following in php.ini, located in /private/etc/php.ini

    file_uploads = On
    upload_max_filesize = 2M


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •