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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:53:49+00:00 2026-06-17T08:53:49+00:00

I have removed all unrelated code from the script below in an attempt to

  • 0

I have removed all unrelated code from the script below in an attempt to narrow down the problem but even I’m now down to ‘bare-bones’ it still won’t work.

There is no error in the web server error log concerning this and print_r($_Files) is empty. What could possibly be stopping this from working please?

The file I’m attempting to upload is 20Kb.
The php server variable upload_max_filesize = 100M and post_max_size = 101M.

<?
echo 'Here is some debugging info:';
print_r($_FILES);

if ($_FILES['image']['name']) {

    echo "\n\nFiles Detected";

} else {
?>
<!DOCTYPE HTML>
<html>
    <head>
        <title>File Upload</title>
    </head>
    <body>
        <form
            action  = "<?=$_SERVER['PHP_SELF']?>"
            enctype = "multipart/form-data"
            name    = "uploadImage">

            Upload:
            <input type='file' name='image'><br><br>
            <input type="submit" value="Upload">
        </form>
    </body>
</html>
<? } ?>

Files are not detected.

  • 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-17T08:53:50+00:00Added an answer on June 17, 2026 at 8:53 am

    For uploading files you need to use “post”. Since you are not specifing “method” attribute for form tag default method is “get” Try setting method="post" for your form.

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

Sidebar

Related Questions

I have a simplified ajay script, from which I have removed all nonrelevant code.
I have a problem where I need to remove all code and triggers from
I have removed all header files within the below path due to numerous errors
There is my site For SEO I have removed the .php extension from all
I have this method which will remove all rows from a table but I
I have removed all Input Managers that were added, but it's still happening. Here
Update: Please see below; I have removed all abstraction and created a plain PHP
i have removed all unnecessary variables andtried to focus directly on the problem at
I have a window with 3 radiobuttons like this(removed all non interesting props): <Control
I have two entities // All details has been removed @Entity @Table(name = "A_TABLE_NAME")

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.