Hello,
Uploading The File :
1. uploade the file and stored this info in a database
i. fileID (a unique identifier -this can get autogenerated )
ii. filename - mySong.mp3 (use this cmd = $_FILES['file']['name'] )
iii. file path - where the file is stored (e.g. \web_root\uploadedFile\)
iv.file full path - (eg \web_root\uploadedFile\mySong.mp3)
v. file Size - in bytes (use this cmd = $_FILES['file']['size'] )
vi. file type - (e.g. mp3, doc, mov,pdf) (use this cmd = $_FILES['file']['type'] )
* note that $_FILE['file']['size']; the first 'file' param is the name you gave your file box =
* also note that the "file path field may not be usefull unless you want to do more processing with your application by dynamically specifying different paths
To download an uploaded file (say mySong.mp3) you might do this
1. List the uploaded file on your web page with an tag. e.g