upload approach changed, added permanent save functionality