问题
Is it possible to get the client's directory path for a file that is uploaded to a server?
回答1:
Most contemporary browser do not show the complete path to a file's origin, but something like /fakepath/file.ext.
But it depends on your browser.
来源:https://stackoverflow.com/questions/6660094/get-upload-folder-and-filename-from-browser