-
- /**
- * It takes a string and an array as arguments, creates a new Upload object,
- * calls the reFiles method on the Upload object, calls the fingerPrint method on
- * the Upload object, calls the uploadFile method on the Upload object,
- * calls the send method on the Upload object, and calls the error method on the
- * Upload object
- *
- * @param $outputFormat string The format of the output, json or xml
- * @param $files array The file to be uploaded, which is an array.
- *
- * @throws \Exception
- */
-function handleFile(string $outputFormat, array $files): void
-{
- $upload = new Upload($outputFormat);
- $files = $upload->reFiles($files);
- try {
- $upload->fingerPrint(count($files));
+
+ function handleFiles(string $outputFormat, array $files):void
+ {
+ $upload = new Upload($outputFormat);
+ $files = $upload->reFiles($files);
+ $fCount = count($files);
+ $upload->fingerPrint($fCount);