Attach a blob to an input of type file in a form

后端 未结 2 2073
天涯浪人
天涯浪人 2021-02-12 11:04

How to append blob to input of type file?




        
2条回答
  •  旧时难觅i
    2021-02-12 11:29

    You can't change the file input but you can use a hidden input to pass data. ex.:

    var hidden_elem = document.getElementById("hidden");
    hidden_elem.value = blob;
    

提交回复
热议问题