Adding upload support, add drag and drop, fix pdf export issue, minor bug fixes