fix #4795 - ensure deterministic ordering of file parts when merging files after upload (credit @HQuast)

This commit is contained in:
sbwalker 2024-11-04 15:28:59 -05:00
parent 7deb0b06af
commit c8a22d9537

View File

@ -517,7 +517,7 @@ namespace Oqtane.Controllers
bool success = true;
using (var stream = new FileStream(Path.Combine(folder, filename + ".tmp"), FileMode.Create))
{
foreach (string filepart in fileparts)
foreach (string filepart in fileparts.Order())
{
try
{