How to do file upload requires username and password

On the main HTML web page, how do you force a user to enter a username and password before they are allowed to upload a file?

What is the best way to achieve this on a website, preferably in plain HTML?

+3
source share
4 answers

You cannot do this with plain HTML. The easiest way is to place the protected file in a directory protected by .htaccess and .htpasswd files.

0
source

This is not possible in HTML.

, , , , - JavaScript, , URI.

-.

+1

... . JavaScript ... .

Apache, .htaccess , , . 1 , . Apache . , , IIS .

/ , ( exsitng) . , , Google , , .

+1

phpmyadmin.open .click create login.name, login.php.then file.php.after , . , , ,

, !

-1

Source: https://habr.com/ru/post/1747146/


All Articles