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 9125605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:50:35+00:00 2026-06-17T06:50:35+00:00

I’m transferring files using http post request from one host to another. Receiving host

  • 0

I’m transferring files using http post request from one host to another.
Receiving host runs apache with php onboard.
The request contains multipart/form-data and is performing by php script (cURL).
There are 86 files with total size about 20Mb.
The issue is the receiving php script gots empty $_POST array.
I reconfigured sending script so it sends the same request in loop but removes one file from data collection on each iteration. When 36 files (total size ~12Mb) are removed the receiving script accepts the data, $_POST variable is populated well.
What can be wrong?
I’ve reviewed all resposible php.ini parameters, so they contain reasonable values.

  ini_set("post_max_size","510M"); 
  ini_set("memory_limit","400M"); 
  ini_set("upload_max_filesize","510M"); 
  ini_set("max_file_uploads","500"); 

Is there a way to investigate the reason? I mean, error_log doesn’t contain anything useful. Maybe there is another source to see?

  • 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-17T06:50:36+00:00Added an answer on June 17, 2026 at 6:50 am

    The post_max_size value cannot be set at runtime on a per-directory basis. Even though your phpinfo() will reflect the change, it will be ignored when a form is processed and will therefore revert back to the default of 8MB.

    This is proved by the fact that the total size of your files is 20MB, yet when you remove ~12MB of files, the script works.

    20 - 12 = 8MB // Therefore the script works
    

    The only solution for this is to set the value in the php.ini, or alternatively as you are using Apache, you can set the value in an http.conf or .htaccess file.

    I too had this issue a while ago, although it was on Windows running IIS. However, the issue is still the same. For more information on the issue please see this thread.

    As it turns out, on Windows, you can only set ini directives that are
    marked PHP_INI_USER per directory. Unfortunately, upload_max_filesize
    and post_max_size are both PHP_INI_PERDIR. From the PHP docs at
    http://php.net/manual/en/configuration.changes.php

    The settings for the directory would be active for any script running
    from this directory or any subdirectory of it. The values under the
    key should have the name of the PHP configuration directive and the
    string value. PHP constants in the values are not parsed. However,
    only configuration values changeable in PHP_INI_USER can be set this
    way, PHP_INI_PERDIR values can not.

    So even though Plesk has an interface to change those directives, and
    even though phpinfo() picks up on them, they do nothing to change the
    actual max upload sizes. Plesk should not allow you to change those on
    Windows, and phpinfo() should not report the change, but what can you
    do.

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

Sidebar

Related Questions

I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have thousands of HTML files to process using Groovy/Java and I need to
I have a view passing on information from a database: def serve_article(request, id): served_article
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I'm trying to create an if statement in PHP that prevents a single post
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm making a simple page using Google Maps API 3. My first. One marker
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

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.