You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to @mjackson/file-storage version 0.6.0, I'm encountering an issue when attempting to upload files. The error occurs during the file upload process.
The text was updated successfully, but these errors were encountered:
I also have the same issue. A hack to make it work is to override the getter on FileUpload class before until its fixed:
functioncreateTempUploadHandler(prefix: string){constdirectory=path.join(os.tmpdir(),prefix);constfileStorage=newLocalFileStorage(directory);asyncfunctionuploadHandler(fileUpload: FileUpload){if(fileUpload.fieldName==="media"){constkey=newDate().getTime().toString(36);Object.defineProperty(fileUpload,"size",{get: ()=>0,});awaitfileStorage.set(key,fileUpload);returnfileStorage.get(key);}// Ignore any files we don't recognize the name of...}returnuploadHandler;}
Hello,
After upgrading to @mjackson/file-storage version 0.6.0, I'm encountering an issue when attempting to upload files. The error occurs during the file upload process.
The text was updated successfully, but these errors were encountered: