Manually upload signature (#521)

* Manually upload signature

* Signature upload UI changes

* fix signature on clear

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Chirag Chhatrala
2024-08-16 20:19:23 +05:30
committed by GitHub
parent 1ac71ecf8b
commit 5049ba7fb1
3 changed files with 116 additions and 2 deletions

View File

@@ -216,6 +216,10 @@ class StoreFormSubmissionJob implements ShouldQueue
private function storeSignature(?string $value)
{
if ($value && preg_match('/^[\/\w\-. ]+$/', $value)) { // If it's filename
return $this->storeFile($value);
}
if ($value == null || !isset(explode(',', $value)[1])) {
return null;
}