0 Members and 1 Guest are viewing this topic.
function getUploadDestinationFileName():string;....... while fileExists(result) do begin inc(i); result:=format('%s\%s(%d)%s', [f.resource, fn, i, ext]); end; end; // getUploadDestinationFileName