-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Исправление полных путей, контроль размера картинок, контроль типа файлов, доработка html для pdf #64
Conversation
if err != nil { | ||
h.logger.Errorf("function %s: got err %s", fn, err) | ||
middleware.UniversalMarshal(w, http.StatusInternalServerError, dto.JSONResponse{ | ||
HTTPStatus: http.StatusInternalServerError, | ||
Error: err.Error(), | ||
}) | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не 400? Относится ко всем этим проверкам.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да вроде нет, если у нас при чтении из multipart.file в byte произошла какая-то ошибка то это пробелемы с сервером.
if len(megaStruct.Applicant.BirthDate) > 10 { | ||
megaStruct.Applicant.BirthDate = megaStruct.Applicant.BirthDate[:10] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А как она у вас хранится? Просто строка YYYYMMDD? Не timestamp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, просто строка
No description provided.