问题
Is there a way to get the absolute file path of a drop event using Javascript, or should I use another technology? If so, I can do the same with folders?
回答1:
Javascript in a web browser is not going to give you absolute file paths from client machines.
Also see this about HTML5 drag-and-drop: http://www.quirksmode.org/blog/archives/2009/09/the_html5_drag.html
来源:https://stackoverflow.com/questions/3025841/javascript-file-drop