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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:52:47+00:00 2026-05-18T01:52:47+00:00

Possible Duplicate: Full path from file input using jQuery I have the following html

  • 0

Possible Duplicate:
Full path from file input using jQuery

I have the following html element

<input type="file" id="upload">

If I use

$("#upload").val();

I only the file name, not the complete absolute path of the file. Can someone tell me how do get the complete path?

  • 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-18T01:52:47+00:00Added an answer on May 18, 2026 at 1:52 am

    You cannot do so – the browser will not allow this because of security concerns. Although there are workarounds, the fact is that you shouldn’t count on this working. The following Stack Overflow questions are relevant here:

    • full path from file input using jquery
    • How to get the file path from HTML input form in Firefox 3

    In addition to these, the new HTML5 specification states that browsers will need to feed a Windows compatible fakepath into the input type="file" field, ostensibly for backward compatibility reasons.

    • http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018981.html
    • The Mystery of c:\fakepath Unveiled

    So trying to obtain the path is worse then useless in newer browsers – you’ll actually get a fake one instead.

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

Sidebar

Related Questions

Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: Singleton: How should it be used Following on from Ewan Makepeace 's
Possible Duplicate: What is my script src URL? I have situation: <script type=text/javascript src=http://server/some.js>
Possible Duplicate: .NET How to check if path is a file and not a
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Possible Duplicate: How to remove an XmlNode from XmlNodeList Hi, How can i delete
Possible Duplicate: 3 and 2 column full screen (width & height) layouts (CSS) What
Possible Duplicate: Choosing a stand-alone full-text search server: Sphinx or SOLR? I will use
Possible Duplicate: What's wrong with Delphi's “with” I am have a problem debugging code

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.