How to Solve NameError: name 'UploadSet' is not defined -- flask_uploads
Solution: Import the 'UploadSet' module
# Add the following line to the top of your code
from flask_uploads import UploadSet
For more information:
flask_uploads UploadSet