jquery - Upload and Retrieve a file with PHP -
jquery - Upload and Retrieve a file with PHP -
i've created little website php , mysql. website allows user fill in questionnaire (which saved in database) , admin person needs view , upload results in pdf format original person can view them. in fact admin person can upload multiple pdf's (over time not in 1 sitting) give more feed need accessible user.
my question is, best way this? first, should upload files via php or jquery or better? should each person own directory? (does matter if there 100's of users?) how can read files pertain particular person , allow them view/download it?
thanks in advance!
you can utilize form , php upload file. if need validation php (for server side validation) or javascript (for client side validation), recommend both.
to distingusih between user data, can utilize prefix filename username or (ie. user1_file1, user1_file2, user19_file18), since think messy create folder each user.
to give link user download add together "location" column user database contain file path in server. this, can check username , every file upload in database.
php jquery mysql file-management
Comments
Post a Comment