How to give a Blob uploaded as FormData a file name?

后端 未结 8 1567
孤街浪徒
孤街浪徒 2020-11-28 19:59

I am currently uploading images pasted from the clipboard with the following code:

// Turns out getAsFile will return a blob, not a file
var blob = event.cli         


        
8条回答
  •  天涯浪人
    2020-11-28 20:36

    Are you using Google App Engine? You could use cookies (made with JavaScript) to maintain a relationship between filenames and the name received from the server.

提交回复
热议问题