How can I create a link to a local file on a locally-run web page?

后端 未结 5 919
野性不改
野性不改 2020-11-22 03:15

I\'d like to have an html file that organizes certain files scattered throughout my hard drive. For example, I have two files that I would link to:

  • C:\\P
5条回答
  •  清酒与你
    2020-11-22 03:33

    back to 2017:

    use URL.createObjectURL( file ) to create local link to file system that user select;

    don't forgot to free memory by using URL.revokeObjectURL()

提交回复
热议问题