init resource upload