Skip to content
Advertisement

Tag: download

Prevent download of PDF file from site

I have files stored in the server with the Plesk panel, currently, any person with the link of my site can access the file and download it. Is there any way to prevent the download for all the users? Answer The general approach is to create a folder that is not in the root folder of the web site. In

Workaround to XHR request and download prohibition

I have a weird situation: I get data from a Postgres database, and from that data, I create a table in a website, using Grid.js. Each line has a “Download” button, that takes 2 arguments from that table entry and send them to a function. Originally, that function would make a XHR request to a php file, that gets files

Laravel download pdf returning random characters

Im trying to download my earlier saved pdf. Ive created this function. And it returns this: Var dumping my $filepath is resulting in this : C:laragonwwwYTBNstorage/pdf/billing/invoice/YTBN_Armando_3_2019-0305.pdf” Which is correct. Answer try to used like that or u can used directly in laravel 5.5 file path only no need to set header

Advertisement