feat: Remove redundant PDF file validation before certificate upload

This commit is contained in:
Achintha Isuru
2026-03-01 21:11:05 -05:00
parent 5b4b8b7138
commit 49ecede35f

View File

@@ -228,19 +228,6 @@ class _CertificateUploadPageState extends State<CertificateUploadPage> {
isUploading: state.status == CertificateUploadStatus.uploading,
hasExistingCertificate: widget.certificate != null,
onUploadPressed: () {
final String? err = _validatePdfFile(
context,
state.selectedFilePath!,
);
if (err != null) {
UiSnackbar.show(
context,
message: err,
type: UiSnackbarType.error,
margin: const EdgeInsets.all(UiConstants.space4),
);
return;
}
BlocProvider.of<CertificateUploadCubit>(context)
.uploadCertificate(
UploadCertificateParams(