I am currently making a website and one of the functions I want is to add a user's music and video files to their library automatically by searching for the path of them on their hard drive and adding them to a database.
for root, dirs, files in os.walk("/mydir"):
for file in files:
I know I can use this python script to search on my own server but is it possible to make it search a user's computer with the correct permissions?
You definitly cannot access local filesystem of your users. It is a security matter.
What you can do by the way is limiting the type of file you can upload with the
accept attribute :
<input id="fileSelect" type="file" accept=".txt" />