Get URL of resource that is drag-and-dropped on field

前端 未结 3 1373
借酒劲吻你
借酒劲吻你 2020-12-31 13:40

I have an html page with a certain input field and I want to add the following functionality.

The user should be able to drag and drop a resource onto the field. The

3条回答
  •  独厮守ぢ
    2020-12-31 14:01

    In Firefox you can use file.mozFullPath. However, this variable presents only in Firefox and don't work in Chrome or Safari.

提交回复
热议问题