Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8647309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:02:22+00:00 2026-06-12T13:02:22+00:00

Possible Duplicate: Why would $_FILES be empty when uploading files to PHP? I am

  • 0

Possible Duplicate:
Why would $_FILES be empty when uploading files to PHP?

I am trying to upload files that are big up to 15 Megabytes.
My PHP configuration in .htaccess file:

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 300
php_value max_input_time 300

and in PHP with ini_get() and phpinfo() I saw the right value 20M.
But when I try to upload 10 MB file it returns empty $_POST and $_FILES arrays.
I checked the $_SERVER["CONTENT_LENGTH"] variable and it returns me 10671561 (10.4MB), which is smaller than the 20M config value.

What can I do to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:02:23+00:00Added an answer on June 12, 2026 at 1:02 pm

    Your htaccess code is correct. You can try below code in your php file then try it.

    ini_set( 'memory_limit', '20M' );
    ini_set('upload_max_filesize', '20M');  
    ini_set('post_max_size', '20M');  
    ini_set('max_input_time', 300);  
    ini_set('max_execution_time', 300); 
    

    Let me know if not working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: upload files via iPad Hey guy's I'm trying to create a native
Possible Duplicate: Redirect *.htm to *.php htaccess rewrite if redirected file exists I set
Possible Duplicate: rename multiple files at once in unix I would like to rename
Possible Duplicate: Removing empty rows of a data file in R How would I
Possible Duplicate: Why would you ever implement finalize()? I saw some java files with
Possible Duplicate: php scandir --> search for files/directories I have a folder, inside this
Possible Duplicate: Reading and Writing Configuration Files Okay, I have a config file, which
Possible Duplicate: PHP list of specific files in a directory use php scandir($dir) and
Possible Duplicate: Alternative for PHP_excel A friend would like to use a Php Excel
Possible Duplicate: PHP list all files in directory ive got a cron job running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.