A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
I noticed that you have prepared for multiple file uploads with the forms element, thres however a bug in EPiServer.Forms.Core.Data.GetPostedFiles
The input "rawData" looks like this with one and two uploaded files
1 file: rawData = "fileUrl#@fileName"
2 files: rawData = "fileUrl#@fileName|fileUrl2#@fileName2"
The GetPostedFiles-method works with 1 file but not with two.
Original code:
the rows:
string str3 = rawData.Substring(length + str1.Length);
string key = rawData.Substring(0, length);
should be
string str3 = str2.Substring(length + str1.Length);
string key = str2.Substring(0, length);