Is there any way to specify a suggested filename when using data: URI?

前端 未结 16 1677
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 03:09

If for example you follow the link:

data:application/octet-stream;base64,SGVsbG8=

The browser will prompt you to download a file consisting of t

16条回答
  •  别那么骄傲
    2020-11-22 04:03

    No.

    The entire purpose is that it's a datastream, not a file. The data source should not have any knowledge of the user agent handling it as a file... and it doesn't.

提交回复
热议问题