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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:05:35+00:00 2026-05-10T23:05:35+00:00

I am running Ubuntu8.041. Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured Can’t get file uploading

  • 0

I am running Ubuntu8.041. Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured

Can’t get file uploading to work at all. Have tested locally on the Ubuntu box… and from my Vista Box. Ubuntu is running inside VMWare on the Vista box.

Here is uploadTestBrowse.php

<?php ?> <form enctype='multipart/form-data' action='uploadTestBrowse.php' method='post'> <input type='hidden' name='MAX_FILE_SIZE' value='1000000' /> <input type='file' name='fileName' /> <br><br> <input type='submit' value='Upload Images'/>  </form> 

Here is uploadTestSubmit.php

<?php error_reporting(E_ALL|E_STRICT);    $uploaddir = 'var/www/ig/images/'; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']);  if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {     echo 'Success.\n'; } else {     echo 'Failure.\n'; }  echo 'Here is some more debugging info:'; print_r($_FILES); ?> 

Here is the output of uploadTestSubmit.php

Notice: Undefined index: userfile in /var/www/ig/admin/uploadTestSubmit.php on line 5

Notice: Undefined index: userfile in /var/www/ig/admin/uploadTestSubmit.php on line 7 Failure. Here is some more debugging info:Array ( [fileName] => Array ( [name] => aq.jpg [type] => image/pjpeg [tmp_name] => /tmpUpload/phpMBwMi9 [error] => 0 [size] => 10543 ) )

php.ini file_uploads = On upload_max_filesize = 2M upload_tmp_dir = /tmpUpload

I’ve chmod -R 777 tmpUpload

I can never see any files in tmpUpload

Apache2 error log not showing anything

Apache2 access log showing: 192.168.21.1 – – [06/Dec/2008:13:13:09 +1300] ‘GET /ig/admin/uploadTestBrowse.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1’ 200 2146 ‘http://192.168.21.128/ig/admin/uploadTestBrowse.php‘ ‘Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618)’

  • 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. 2026-05-10T23:05:36+00:00Added an answer on May 10, 2026 at 11:05 pm

    Your uploadTestBrowse.php and uploadTestSubmit.php don’t match. Different names in action and upload fields.

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

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Look into Directory.GetFiles. You can call it with a specified… May 11, 2026 at 12:36 pm
  • added an answer I would do this: Store the time of the last… May 11, 2026 at 12:36 pm
  • added an answer If you upgraded to TFS2008 then you could use a… May 11, 2026 at 12:36 pm

Related Questions

I am running Ubuntu8.041. Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured Can't get file uploading
I am running an Ubuntu 8.10, using Python 2.5 out of the box. This
PHP 4.4 and PHP 5.2.3 under Apache 2.2.4 on ubuntu. I am running Moodle
I am currently running gdb version 6.7.1 on Ubuntu Linux, and working in a
I am running oracle and have a query which pulls some results from the
I am running a Tomcat application, and I need to display some time values.
Is Java a suitable alternative to C / C++ for realtime audio processing? I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.