0

I search lot about this, but did not get any solution. I want to download files without prompting suggestion dialog box, because there are bunch of files say 200.

PHP automatically downloads file without prompting to save or open file

With the reference of above, I came to know this is browser related issue but is there any way we can force browser to download file using php or javascript.

I am getting below popup which should be skipped.

enter image description here

Any suggestion would be appreciated. Thanks in advance.

Nagesh Katke
  • 540
  • 7
  • 23
  • 1
    I can't say 100% but on the surface this seems like if possible, it'd be a huge security problem – OliverRadini Feb 04 '19 at 10:24
  • Why do you not use a lib to compress the files and have them download the compressed folder? – Jaquarh Feb 04 '19 at 10:27
  • @ponury-kostek I know its duplicate and I mentioned in my question also, but it does not have an answer which I am looking for. – Nagesh Katke Feb 04 '19 at 10:34
  • 2
    Yeah, 'cause the answer you *want* doesn't exist. – deceze Feb 04 '19 at 10:36
  • @deceze okay, but is there any way where I can give download path on user system where all the files gets downloaded. As in chrome it gets downloaded directly as it does not prompt any popup to save or open. – Nagesh Katke Feb 04 '19 at 10:40
  • 1
    That would be a huge security concern! Further, you don't typically have any idea about what folders do or don't exist on your visitor's machine, neither would it be any of your business. – deceze Feb 04 '19 at 10:45
  • Okay. Thank you for your time. – Nagesh Katke Feb 04 '19 at 10:57

0 Answers0