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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:59:31+00:00 2026-06-08T23:59:31+00:00

I have a multipart form I’ve just moved to a new server which uploads

  • 0

I have a multipart form I’ve just moved to a new server which uploads an image. It works perfectly on one, but not on the other. Regular form data works, but my php script to process the upload doesn’t acknowledge that there are any files.

ie:

if($_FILES['product_image'][name] != '') {

    // store the image

}

It basically ignores this $_FILES variable as though it doesn’t exist.

I vaguely recall this issue happening in the past but I can’t remember what it was that solved it. Is there some configuration for apache setup, or something I am missing?

Here is a var_dump($_FILES) from the upload:

array(2) { [“product_image”]=> array(5) { [“name”]=> string(11)
“TEST.png” [“type”]=> string(9) “image/png” [“tmp_name”]=> string(14)
“/tmp/phpYP9AKA” [“error”]=> int(0) [“size”]=> int(38652) }

  • 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-08T23:59:33+00:00Added an answer on June 8, 2026 at 11:59 pm

    This is the critical part:

    ["error"]=> int(4)
    

    The upload failed with error code 4 – “No file was uploaded”.

    Without seeing your form, there’s no way to diagnos this.

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

Sidebar

Related Questions

I have a multipart form which is supposed to upload a file as well
I have a form to upload image like below <form name=sample enctype=multipart/form-data action=index.php method=post
There are plenty of multipart/form-data file upload solutions out there, but I have not
I have this form: <form action=image_upload.php method=post enctype=multipart/form-data> Image 1: <input type=file name=event_image />
I have a form which contains among others: <form id=new_basic_ad class=new_basic_ad method=post enctype=multipart/form-data action=/basic_ads
I have a servlet which handles a multipart form post. The post is actually
I have an image upload form <% using (Html.BeginForm(PictureValidateAndSave, UserGallery, new {}, FormMethod.Post, new
I have a simple form like this one: <form ENCTYPE=multipart/form-data action=upload.php method=POST> <p>UPLOAD FILE:
I have this form: <form method=post enctype=multipart/form-data accept-charset=UTF-8> But when I submit an é
I have a form with a submit button and it works fine, but I

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.