23

Вопрос по html, javascript – Изменить название загрузки в JavaScript

Error: User Rate Limit Exceeded

<a href="downloadable.txt">Download</a>

Error: User Rate Limit Exceeded

Error: User Rate Limit ExceededChanging the name of an html download

от Mr Lister
3 ответа
2

Error: User Rate Limit Exceeded

//In your html code , add these : ->
<script src="https://rawgit.com/eligrey/FileSaver.js/master/FileSaver.js" type="text/javascript"></script>
 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular-animate.js"></script>
//In your Javascript:- 

$http({
        url: "url where the file is located",
        method: "GET",
        responseType: "blob"
    }).then(function (response) {

saveAs(response.data,"newfilename.extension");

})
68

Error: User Rate Limit Exceeded

a[download]link.txtsomething.txt.

​<a download="something.txt" href="link.txt">asdf</a>​​​​​​​​​​​​​​​​​​​​​​​​​​​

Error: User Rate Limit Exceededdeveloper.mozilla.org/en-US/docs/Web/HTML/Element/…)

от 

Error: User Rate Limit Exceeded

от 

Error: User Rate Limit Exceededcaniuse.com/download

от 

caniuse.com/#feat=downloadError: User Rate Limit Exceeded

от 

Error: User Rate Limit Exceededdeveloper.mozilla.org/cs/docs/Web/HTML/Element/a )

от 
10

Error: User Rate Limit Exceeded

Content-Disposition: attachment; filename=somecustomname.txt

Error: User Rate Limit Exceeded

от Intra

Похожие вопросы