Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't get the complete address while uploading a file

Tags:

html

I want to send the mail as an attachment from HTML pages to mail server, but whenever I upload any file from HTML page, I'm not getting its complete address. I'm just getting its end name. How can I enable my HTML page to track down the complete address of my file? Do I have to do anything special for it?

like image 619
Unknown Avatar asked Nov 04 '09 19:11

Unknown


2 Answers

You are not able to get the full path of the uploaded file. That is a security risk that browsers have been clamping down as of late.

like image 131
Daniel A. White Avatar answered Nov 05 '22 17:11

Daniel A. White


I suppose you refer to uploading a file in a HTML form.

The filename you receive may or may not contain the full path, depending on your web browser. For example, there are differences between uploading from Firefox as opposed to Internet Explorer.

like image 3
Bernard Vander Beken Avatar answered Nov 05 '22 16:11

Bernard Vander Beken