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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:27:04+00:00 2026-05-19T23:27:04+00:00

[SOLVED] dont ask me how i have no idea, i didnt change anything but

  • 0

[SOLVED] dont ask me how i have no idea, i didnt change anything but the names of the 2 form file inputs from uploadedfile and fuploadedfile to abc and abc2 and now it works, im as confused as you.

ok, i have 2 file inputs one called ‘uploadedfile’ the other called ‘fuploadedfile’
i have a function i call to upload a file, which if tested on a single file works

uploadfile($_FILES["uploadedfile"]);

works

uploadfile($_FILES["fuploadedfile"]);

does not

i have tacked this to the end of the upload script to see what happens

echo var_dump($_FILES["uploadedfile"]);
echo var_dump($_FILES["fuploadedfile"]);

EDIT: this is what i get from each
uploadedfile:

array(5) { ["name"]=> string(7) "cat.gif" ["type"]=> string(9) "image/gif" ["tmp_name"]=> string(24) "C:\xampp\tmp\php59F9.tmp" ["error"]=> int(0) ["size"]=> int(14328) } 

and this is what i get from fuploadedfile:

NULL

the first one prints out an array full of information relative to the uploaded file, which is good.
the second one gives me some “Undefined index” error, im uploading the same file via the same script, the only thing thats different is that ive called the second one a different name
which shouldnt effect the upload script because it uses a dynamic variable.

here’s the upload script – http://pastebin.com/vkcZEmXp

Why is it doing this?

EDIT: this is pretty much the HTML form (sans the other random inputs), but i don’t think it’s the problem because the upload has worked for the first one.

<form name="mainform" id="mainform" enctype="multipart/form-data" action="uploader.php" method="POST">
<input name="uploadedfile" type="file" />
<input name="fuploadedfile" type="file" />
<input class="formbtn" type="submit" value="Submit">
</form>
  • 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-05-19T23:27:05+00:00Added an answer on May 19, 2026 at 11:27 pm

    I don’t even know what the actuall issue was, but seems like my advices helped 😉

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

Sidebar

Related Questions

I am doing something in CUDA (FFT), but I have no idea why it
I have asked about the same issue from here and here , but still
I don't get this. I've searched everywhere and no one's answers have solved this
I have single-thread windows form application written with VB.NET and targeting Framework 1.1 .
i have this issue working but i would like to know if there is
I don't know exactly how it happened, but I have a versioned .svn directory
I have a piece of templated code that is never run, but is compiled.
CAPTCHAs that ask users to read distorted text are fine for sighted people, but
I have a rather small but weird problem that I can't seem to fix.
I have asked this question earlier today but I didn't provide enough information and

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.