Updating the flow of uploading file to elimiate the failures caused due
to performance issue