I understand that Hyperledger stores private key of users in a directory called keystore. i don't want my network to store it rather user should upload this file before any transaction. How to do it.
I don't have a full code to provide to you and I don't have time to write it. However, here is a flow you can follow:
I do not know what is your scenario, but:
But as I said, I don't know your scenario. If you are in a closed network then transfering PK might not be a problem. If your client application manages the keys for the user, it may be ok too, but what if the user deletes it by mistake? Or what if the device is broken?