I need a simple script wich have two main functions.
1. Upload a file to a pre-defined folder and print the info from the upload form to a TXT file (database).
2. List all files in a spesified folder, arranging them in a simple table, sorted by upload date (newest on top) and showing the info stored with the file, and a download link to the file.
- I want all functions in one script file called [login to view URL] or [login to view URL] (no external template files, etc..)
"../scriptname?action=list&channel=test"
eq: show content from folder "test"
?action=upload
eq: show upload form with a dropdown menu for the pre-defined folders.
?action=upload&channel=test
eq: show upload form, and upload to folder "test"
The upload form needs these fields:
- Browse for the file
- Name (uploaded by)
- Email (uploaders email)
- Upload folder (drop-down menu)
- Submit button
Note! the script also need to print the upload date to the database.
the script will be used inside a protected area, so there is no need for passwords/login.
The script will mainly upload Word and XL documents.
No need for fancy graphics, just plain functionality. i will add the fancy looks myself.
Note! the "list" function may be as a SSI
the attached script have many of the abvove functions, but lacks the file upload and directory listing.
give me a price and time quote. Quick delivery time will be preferred. i need this before the weekend!
I can provide this script in a couple of hours.
Have just finished a very similar script for another client.
The script I wrote uses Mysql, but I wrote another for Postgres and could modify this to be flat file based if required.
The current implementation is password protected and the script determines the folder to upload to by looking at the username/password.
Admin login can also choose which folder to upload files too.
Lets get started on this straight away.