Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hy I have a password policy project from my university which is almost complete but I have to ask a question. I made sign up, login, profile and renew password page which work very well but now I have decides to add upload and download file option where user can upload his/her personal file like .doc or .pdf file.
I want to decide to upload and download file option on user profile page. In that project I use php, mysql and other.
So my question is if I add upload and download file option on user profile page I have to use php only or php/mysql both, to implement upload and download file on user profile page.

What I have tried:

I made a simple sign up, login application using php/mysql
Posted
Updated 15-Sep-17 23:24pm
v2

For uploading file only you need to use PHP.
But for maintaining information regarding file u need MySQL.
For example for one student the Student Id 1 and he or she uploading a ProjectFile.pdf
then you need to upload a file in a unique location (alternative you can rename file) with following information in database
1. StudentID : 1
2. FilePath : ../Assets/Upload/<Some Random String>/ProjectFile.pdf
3. FileName : ProjectFile.pdf

Now at the time of download scan file from MySQL Tables.
Get the File Path and Start Download file for End User.

I hope i am able to resolve your query.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900