nlt-pagoda/pagoda-scratch — pull request #63 by sinkingshriek (2012-04-20 07:20:07+00:00)
Title: Upload [Unstable Version]

* Issues:-
- Data entered in the textfield on add assignment page has not yet been stored, which I was planning to. Reason being that it is not possible for forms to have sub forms. In other words, forms cannot have forms inside them.
- **Workaround for that would be using a javascript to populate the textfield instead of including form **
- Attach button is away from the assignment table for the same reason as above.
- Upon entering http://localhost/pagoda-scratch/upload/ , with the extra "/" at the end it does not recognize that it should be directed to index function however, http://localhost/pagoda-scratch/upload/index works just fine.
- Assessment ID is required which is why I have not yet made it possible for the data to be inserted in the database, although I now have all the required data.

*Usage:-
- User can either type http://localhost/upload or http://localhost/upload/[course_id]
+ When using the former, users will be asked which course are the files going to be attached to upon clicking assign button.
+ When using the latter, users will be automatically directed to the add assignment page of that course_id (**I am thinking of allowing CRN number too but have not bothered about it right now **)
- User is shown with his/her uploaded file if s/he has uploaded files before.
- User can upload multiple files at once.
- User will be asked whether to replace the old file with the new one if same file is found, (**Glitch in this feature as the file size (kb) and filename has not been properly displayed**)
- Upon doing multiple file upload, the files that does not have an existing file name are automatically uploaded, only existing files are asked to be replaced.
- User can chose to replace the old file with new one or keep the old one.

I'm pretty sure there are numerous bugs in the code, also the aesthetic part of code has been totally ignored right now and the code formatting also is quite horrible so far, not enough comments has been added in the code, only on the parts I thought was very crucial, test code may still be present which are commented out.

Just pushing to get on the track with the team.