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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:44:24+00:00 2026-05-15T18:44:24+00:00

I have a form that contains an html file browse button ( <input type=file

  • 0

I have a form that contains an html file browse button ( <input type=file /> ). User select a file by clicking browse button and submit the form. On form submission new php script (submitToServer.php) is called that use that file to upload it to the server.

Now I want to upload that file without using browse button because file name and path is always same when we upload. How can I do this?

currently submitToServer.php file handle file using browse button like this:

$errorCode = $_FILES['claimsfile']['error'];
$claimsFileLocation = $_FILES["claimsfile"]["tmp_name"];
$claimsFileName = $_FILES["claimsfile"]["name"];
$claimsFilePointer = fopen($_FILES["claimsfile"]["tmp_name"], "r");
  • 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-15T18:44:24+00:00Added an answer on May 15, 2026 at 6:44 pm

    I suspect that’s not possible due to security reasons, you do have to click the browse button and specify a file first. Pre-filling this field with some tricky paths (../../etc) and not pressing the browse button would have created security problems (if you could imagine for a while)

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Peter thanks for the reply. I finally figured it out… May 16, 2026 at 2:18 pm
  • Editorial Team
    Editorial Team added an answer You're replacing the <body> element's contents with this: $("body").html(data); This… May 16, 2026 at 2:18 pm
  • Editorial Team
    Editorial Team added an answer Esc works for me May 16, 2026 at 2:18 pm

Trending Tags

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

Top Members

Related Questions

In my HTML code, I have a form tag that contains two input boxes,
I have a php file that contains a HTML form, then PHP logic, then
I have an asp.net form that contains some html, 2 controls a calendar from
i have a form that contains 3 File inputs.i want to send it via
I have a form on a page that sends data to php file via
We have some html that looks like this: <form id=MyUserControl runat=server method=post> <script language=javascript
To dynamically fill DropDown controls on my HTML Form, I have written code that
I have normal HTML input fields, that have default borders depending on Window/Browser settings.
In a VB.NET Winforms application, I have a form that contains both a datagridview
I have a php file that I am trying to send the output in

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.