add some validations
Closed this issue · 2 comments
ShowBaba commented
add validations to some inputs like filename and file path (should contain a file extension), this might cause the file URL to be invalid
opensaucerer commented
True...let's also create a new bifrost error code called ErrInvalidParameters
so we have something like
return nil, &errors.BifrostError{
Err: fmt.Errorf("the error message"),
ErrorCode: errors.ErrInvalidParameters,
}
opensaucerer commented
Resolved