maliha
maliha

Reputation: 41

local file system access via HTML5 and PHP5

I want to enhance my browser-based web application with functionality that needs to read the absolute path of the files being uploaded and used for some processing, I have used HTML5 File API and PHP POST Upload method to support the upload functionality.

Question: Direct or work around method of reading the absolute path (client-side) of the file that is uploaded.

Upvotes: 1

Views: 974

Answers (1)

Crozin
Crozin

Reputation: 44376

I'm not very familiar with FileAPI yet, but from what I can see in specs.:

  1. For security reasons full file path ain't available
  2. FileAPI provides File interface that contains name attribute. However according to the spec it's file name only, without path.

You aren't able to get that.

Upvotes: 2

Related Questions