Hi, I am jumping on this topic because I have pretty much the same issue.
Some of the downloaded files have some number in their name , something like “myfile_123_ext.zip”,
which will get trimmed to “myfile_ext.zip”.
What is the purpose of the statement “preg_replace(“/([0-9]+)_/”, “”, basename($sfile))” ?
Thanks