You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I updated TinyFileManager and noticed that the OverRide option disappeared during an Upload.
I added it in my own version and I took the opportunity to modify its behavior which did not suit me.
Indeed, you rename the new file that we upload while I prefer to rename the existing file before uploading a new file.
So I have a history of modified files and the new version is automatically applied, it seems more logical and easier to use daily
Here is the code I modified:
Hello,
I updated TinyFileManager and noticed that the OverRide option disappeared during an Upload.
I added it in my own version and I took the opportunity to modify its behavior which did not suit me.
Indeed, you rename the new file that we upload while I prefer to rename the existing file before uploading a new file.
So I have a history of modified files and the new version is automatically applied, it seems more logical and easier to use daily
Here is the code I modified:
BEFORE:
if ($chunkIndex == $chunkTotal - 1) { if (file_exists ($fullPath)) { $ext_1 = $ext ? '.'.$ext : ''; $fullPathTarget = $path . '/' . basename($fullPathInput, $ext_1) .'_'. date('ymdHis'). $ext_1; } else { $fullPathTarget = $fullPath; } rename("{$fullPath}.part", $fullPathTarget); }
AFTER:
if ($chunkIndex == $chunkTotal - 1) { if (file_exists($fullPath)) { $ext_1 = $ext ? '.' . $ext : ''; rename($fullPath, $path . '/' . basename($fullPathInput, $ext_1) . '_' . date('ymdHis') . $ext_1); } rename("{$fullPath}.part", $fullPath); }
The text was updated successfully, but these errors were encountered: