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

Related Questions

I have a linux server running ubuntu 10.10 maverick with apache and php installed,
I'm running Ubuntu 11.10 and installed Ruby 1.9 like this: $ sudo apt-get install
Can I install matlab on beagleboard xm (running ubuntu 12.04)? If I can't how
Running Ubuntu 10.04 on Linode, RVM, Rails 3, Apache with Passenger module, carrierwave and
Running ubuntu 9.04 jaunty. When I run make I get the following error: Python
First off I'm running Ubuntu 9.10 I've edited the /etc/environment file to look like
I have a server running Ubuntu 12.04 LTS, Pound 2.6 and Apache 2.2. I
Running Ubuntu 10, RVM, Passenger and apache2. Trying to configure and get Redmine running.
My web server is running Ubuntu 10.04. I want to use PHP in conjunction
I am running Ubuntu 10.04. Whenever I run make clean , I get this:

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.