I know it is an old question, but since a few tutorials I've seen still have the same code or similar code to the above, I guess formidable has chnaged his api, so the above code does not work any more. With formidable v3.5.1 files.profilePic
is an array, therefore to access filepath we have to use files.profilePic[0].filepath
↧
Answer by Ste for Formidable returns TypeError, ERR_INVALID_ARG_TYPE: The "path" argument is undefined
↧