Made extensions of file uploads configurable and added support for multiple file uploads