Implemented file size validation and more error handling

Implemented a file size validation after download/upload to skip file if unmatch is found.
Increased cases of error that is handled.

Signed-off-by: Fabrício Godoy <fgodoy@rodrimar.com.br>