no checking validation of an attachmnet file for non S3 env

No checking validation of an attachment file for non S3 env.

#313 added no validation for S3 env. 
this also add no validation of attachment file for non S3 env.