Cosa devo scrivere nell'head di un file html affinchè si avvii in automatico un download? Perché questo non funziona?
codice HTML:<!doctype html> <html> <head> <meta http-equiv="Cache-control" content="public"> <meta http-equiv="Content-Description" content="File Transfer"> <meta http-equiv="Content-length" content="10.539.887 byte"> <meta http-equiv="Content-type" content="Application/octet-stream"> <meta http-equiv="Content-Disposition" content="attachment; filename=http://localhost/file_download/IMG%200324.JPG"> <meta charset="utf-8"> <title>Documento senza titolo</title> </head> <a href="http://localhost/file_download/IMG%200324.JPG">prova</a> <body> </body> </html>