sending file object as argument
upload cleanup