I made a simple HTML, JS, & PHP app to transfer files between my phone and computer. I want to host it on my personal server, but I'm worried that malicious internet browsers could access it and upload harmful files.
I've read various ways of protecting file uploads, which involve protecting against which files are uploaded and/or executed. I want to protect against which users are allowed to upload files, and trust those users (namely, me) with uploading safe files.
I put a password input in the HTML upload form, and in the PHP upload script, check that the password is equal to a set value before allowing file uploads.
Is this a safe enough protection against malicious internet browsers, providing the password is adequate? Should I be concerned of any loopholes to bypass providing the right password?