Good afternoon. You want to make download files in one form on the site, began to do and faced with a problem.
There is such code:
<form enctype="multipart/form-data" action="file.php" method="POST">
Send file: <input name="file" type="file">
<input type="submit" value="Send!">
Everything works when uploading .txt files or any other format, but when uploading a docx or doc - get error response from the server (see screenshot).
And, accordingly, the browser shows a page saying cannot load. But when I try to load other formats everything works fine.
What's the problem? Where to dig?
PS: I Tried already to bring the code into a workable download files in a specific folder, in the end, all file formats when you download go to the desired folder, namely doc or docx is not loaded.