Implemented attachment upload, Added apache mime dependency.