At the moment, the decrypt operation creates a decrypted file alongside encrypted file. This results in following issues:
It takes about 200ms to file to actually gets decrypted (the decrypt api call returns immediately). Till that time, the decrypted file size remains 0 bytes.
If incorrect credentials are specified, the file size remains 0. The decrypt API call should have returned error in this case.
The decrypt call fails if decrypted file already exists.
Suggestion
Decrypt and download in one call without creating the file contents on disk. The decrypt call should return error if it is unable to decrypt the contents instead of returning 0 bytes file.
Hi,
At the moment, the decrypt operation creates a decrypted file alongside encrypted file. This results in following issues:
Suggestion
Decrypt and download in one call without creating the file contents on disk. The decrypt call should return error if it is unable to decrypt the contents instead of returning 0 bytes file.