added upload and download for file as json and encrypted