complted upload code
connected upload code with readAndStore code