add encryption to upload files
fixed file upload