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
What are you trying to achieve or the steps to reproduce?
its taking care of all things perfectly fine the problem is that i have used below options, where maxFileSize is around 50 - 52mb but when i upload the file bigger than that, the temp file is created and throws an error but file and fields are completely empty so i dont have access to temp file path so i can not remove the temp uploaded file... or the formidable should have deleted the temp created file itself
form.parse(req,async(err,fields,file)=>{if(err){if(err.code===formidable.errors.biggerThanMaxFileSize){console.log(file)// {}console.log(fields)// {}reject("File is way too big, Please upload file under 50mb");return;}}
What was the result you got?
Bigger files are uploaded inside folder with random string eg c798501cb43645d2a87a5b300.csv
What result did you expect?
file object should have a filepath propety indicating the temp path so the upload file can be removed or it should have removed the tmp file itself...
The text was updated successfully, but these errors were encountered:
Support plan
Context
What are you trying to achieve or the steps to reproduce?
its taking care of all things perfectly fine the problem is that i have used below options, where maxFileSize is around 50 - 52mb but when i upload the file bigger than that, the temp file is created and throws an error but file and fields are completely empty so i dont have access to temp file path so i can not remove the temp uploaded file... or the formidable should have deleted the temp created file itself
What was the result you got?
Bigger files are uploaded inside folder with random string eg
c798501cb43645d2a87a5b300.csv
What result did you expect?
file object should have a filepath propety indicating the temp path so the upload file can be removed or it should have removed the tmp file itself...
The text was updated successfully, but these errors were encountered: