code for upload from bitflector