lundi 22 mars 2021

showing new pdf with same name vue.js and laravel

I'm showing pdf in modal popup like this :

<div class="modal-body">
        <embed :src="'../../../../storage/users/user_'+userId+'.pdf?t=' + new Date().getTime()" width="700px" max-height="800px" type="application/pdf">
</div>

This file is created every time i load modal on button click, but when i load modal old file is shown, but i want to display new file that was generated with the same name.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire