fixed upload issue, might have been related to the flask version