fix: frontend upload bitstream failed
This commit is contained in:
@@ -3,6 +3,8 @@ import { isNull, isUndefined } from "lodash";
|
||||
|
||||
export namespace Common {
|
||||
export function toFileParameter(object: File): FileParameter {
|
||||
if (isNull(object) || isUndefined(object))
|
||||
throw new Error("File is Null or Undefined");
|
||||
return {
|
||||
data: object,
|
||||
fileName: object.name
|
||||
|
||||
Reference in New Issue
Block a user