refactor upload:encode file with base64, detach upload from main loop
refactor upload:encode file with base64, detach upload from main loop
Merge pull request #5844 from heliclei/refactor-console-upload

refactor upload:encode file with base64, detach upload from main loop