MCPcopy Create free account
hub / github.com/bugy/script-server / getFileInputValue

Function getFileInputValue

web-src/src/common/utils/common.js:706–716  ·  view source on GitHub ↗
(fileField)

Source from the content-addressed store, hash-verified

704}
705
706export function getFileInputValue(fileField) {
707 const files = fileField.files;
708 let value;
709 if (files && (files.length > 0)) {
710 value = files[0];
711 } else {
712 value = null;
713 }
714
715 return value
716}
717
718export function isFullRegexMatch(regex, value) {
719 let fullStringPattern = regex

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected