Results 1 to 5 of 5

Thread: [RESOLVED] Large file upload

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Resolved [RESOLVED] Large file upload

    Hello everybody,

    My client wants the option of large file uploads in his website. I changed the constant upload_max_filesize to 5M on my system and it works, but how can I do this change on the hosting server using my control panel or any other option.

    Thanks.

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: Large file upload

    ini_set() should allow you to change the upload_max_filesize to 5M, but this needs to be added to your code.

  3. #3

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: Large file upload

    I tried this but it doesn't work for me.

    Code:
    ini_set('post_max_size','5M');
    ini_set('upload_max_filesize','5M');
    Thanks.

  4. #4
    Member AWC_Joe's Avatar
    Join Date
    Jan 2006
    Location
    Located
    Posts
    49

    Re: Large file upload

    Some hosts will let you place a php.ini file (which are limited) in dirs.

    Maybe check your hosts forum or place a php.ini file (with the code below in it) in the same dir which the script will be running in:

    Example:
    upload_max_filesize = 7M
    post_max_size = 50M


    _
    |
    Some programs and scripts ive made: http://wiki.anotherwebcom.com
    What was once an opinion, became a fact, to be later proven wrong...

  5. #5

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: Large file upload

    Thanks. That worked for me.

Posting Permissions

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



Click Here to Expand Forum to Full Width