How do I get the full path of a selected file with a type="file" field? [duplicate]

1

I have a field as follows:

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

And I want to know What is the complete path ?, but when doing this.val() from javascript , I get the following:

  

C: \ fakepath \ test.txt

How can you solve it?

It's to get the file and upload it to an FTP connection from laravel.

    
asked by Pablo Contreras 10.06.2017 в 04:30
source

1 answer

1

I quote the answer of stack over flow in English:

  

You can not do it - the browser will not allow it due to security issues. Although there are solutions, the fact is that you should not have this job.

    
answered by 10.06.2017 / 04:36
source