Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003

    share hosting script inquiry


    i am a newbie, so need some help from genius.

    i am using share hosting, and i can only upload file max 2MB thur http. Is there any method that I can override and make the max upload size to 10MB? Because hosting company will not update their server setting.

  2. #2
    Join Date
    Mar 2004
    Granville OH
    Short answer: No

    Long answer: If they won't change you need to change. You could always split your files into smaller pieces and provide methods for combining them back together again.

    If http is your only method for uploading files you're rather stuck. Check and make sure that you don't also have ftp access. If you're paying for hosting it's likely you have an alternate method of transferring files.

  3. #3
    Join Date
    Nov 2003
    If you're using php, some hosts allow you to override the settings using a .htaccess file.

    Put a file called .htaccess in the same directory/folder as the script receiving the uploads, and have at least the following entries:

    php_value upload_max_filesize ####
    php_value post_max_size ####
    php_value memory_limit ####

    All #### are in bytes.
    -Upload max filesize is self explanatory
    -Post max size must be (slightly) larger than upload max filesize
    -Memory limit should be larger than post max size. Usually 1-4MB more is more than sufficient depending on the complexity of your script.

    Many package scripts also have their own setting which will restrict upload sizes, ensure you find and change that setting too.

Posting Permissions

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