Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out 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);