Closed cfedermann closed 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:
.zip
.xml
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.
xmlwf
xmllint
Complete; addressed by pull request #6.
Before accepting any given file, TrendMiner checks:
Thanks! This closes the issue.
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:
.zip
or.xml
);.zip
) or contains text (.xml
);.zip
archive;.xml
files before running the Perl code.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 usingxmllint
.