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

  • Home
  • SEARCH
  • 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 8182935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:00:32+00:00 2026-06-07T01:00:32+00:00

I am writing a PHP script to upload and re-size 4 images. I have

  • 0

I am writing a PHP script to upload and re-size 4 images.
I have opted to use the method of giving 4 inputs the same name (an array):

<input type="file" name = "userfile[]" id="file1" />
<input type="file" name = "userfile[]" id="file2" />
<input type="file" name = "userfile[]" id="file3" />
<input type="file" name = "userfile[]" id="file4" />

I have set max_upload_filesize in wamp to 50M.
I have verified the max_uploads is set to default (20).
I have restarted all services and run php_info to verify this php.ini file was loaded.

My form-receiver page only does one thing:

var_dump($_FILES["userfile"]);

This works well, until file size approaches 8MB.
When the size of the uploaded files approache 8MB I get the error
Notice: Undefined index: userfile in C:\wamp\www\uploader\file_upload.php on line 2

I have re-sized one image, pushing it up to 8MB size, and then tried ot upload 1 single file- this recreates the error. I am certain that an 8MB limit exists here.

Can anyone help me solve 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-07T01:00:34+00:00Added an answer on June 7, 2026 at 1:00 am

    Find post_max_size and increase it’s value.

    Also, it’s upload_max_filesize, not max_upload_filesize.

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

Sidebar

Related Questions

I'm writing a php file upload script for a project - I have seen
I have started writing a PHP script for a game about creatures, there are
I'm writing a php script that needs to load a 2D array into a
I am writing a PHP script where the inputs are: From date To date
I have been writing a php script that saves a long string within cookie
I am writing a php script and somewhere before my header() function i have
I am writing a php script for creating serialized array as follow: $x=Array(); $x[0]=$_GET['fname'];
I writing a PHP script program under Linux. In the script, I need call
Im writing a php script to compare the similarity of 2 strings. This works
Basically I'm writing a PHP script that displays a Minecraft skin. I understand that

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.