cfedermann / TrendMiner

Web services for the TrendMiner project
0 stars 1 forks source link

Create code for upload validation #1

Closed cfedermann closed 11 years ago

cfedermann commented 11 years ago

Create code that validates the uploaded file in order to prevent abuse. The exact "method" for validation is to-be-defined, feel free to play around.

Some basic ideas are:

Django's documentation on "Form and field validation" is available here:

It should not be necessary to create a customised FileUpload field, though.

XML well-formedness can be checked using the xmlwf command line tool; XML validity can be checked using xmllint.

itsjeyd commented 11 years ago

Complete; addressed by pull request #6.

Before accepting any given file, TrendMiner checks:

cfedermann commented 11 years ago

Thanks! This closes the issue.