UpLoad.cfm form has been created and tested locally on the lab's dev server (not the SPH dev server).
Applications:
This form could be modified to create upload forms for various stages of processing. Especially to send audio for processing to the video lab before it becomes a podcast.
so... pbbly create a RawUplaod.cfm from this file later.
The features of this cool code are:
1. Mime-type restriction for upload
2. File size restriction for the uploaded file so that it doesn't kill the server or anything.
Drawback: The mime-type checking is done on the server after the upload - this is not a major problem as such, because its not that it checks file size after upload. Its just the mime type. However, the question is - what if some-one gets a malicious file with wav/mp3 extention to upload?
In that case, we have to make sure that this page is restricted to authorized users only.
Next Steps:
1. Create a processing page for adding metadata to the file on upload. Not in the same form, because there shouldn't be a frustrating situation where the upload failed and all the entered metadata needs to be entered again. That would frustrate people. However, we don't want the uploaded file to be orphaned if there was no data entry on the metadata page - so update the database with the filename, date of creation, Coursename, length (size in bytes) values. The AddMetadata page will then take over.
2. AddMetadata Page: Update the record created in the previous page with additional Metadata. Give choice of loading fields from a set template and then doing only minor changes. Also, ability to add searchable text from a powerpoint file is a great idea. The rtf export of the powerpoint slide, with demarcated slide numbers. This might be a little too ambitious.... but, well!
More later.
No comments:
Post a Comment