Using JQuery for the front end and CFML for the backend I need a small file upload script. I will just need this one piece I will be integrating into a CRM.
1. It will upload files and then list the current files uploaded to the contact without page refresh and display a progress bar when uploading. The contact already has files "attached" to the account; it should display those below the upload field/button (will describe this in point 3.)
2. When the page loads the code will have access to the primary key of the main table Contact "ContactID". File directories will be created according to this "ContactID" will be used to create directories to store the files for the particular contact. If the directory already exists then the file will be uploaded to it. If it does not exist then <cfdirectory> will be used to first create the directory then upload the file to it. (For your development purposes, just have a hidden form field or some JScript where I can populate this number when the page initially loads.)
3. The "pagelet" that displays the files should use a <cfdirectory> to display a list of files that contain the following information: File name (should have a target="_blank" link to the file), file date, and a delete link (with a jscript confirm() question.)
4. The "delete" link will use <cffile> to delete the file.
You should be able to complete this using just one CFML file that does all the actions (you can use cfcase, cfswitch statements) and a small bit of JQuery on the client. I can set up a dev server for you if you need it.