diff --git a/lib/file-control.php b/lib/file-control.php
index 8a9046d..4ca64ef 100644
--- a/lib/file-control.php
+++ b/lib/file-control.php
@@ -52,6 +52,19 @@ if ($_GET['action']=="newFolder") {
echo '';
}
+// If we're due to paste a new file...
+if ($_GET['action']=="paste") {
+ $location = $docRoot.strClean(str_replace("|","/",$_GET['location']));
+ if (is_writable($location)) {
+ copy($file, $location."/".basename($file));
+ // Reload file manager
+ echo '';
+ } else {
+ echo "";
+ }
+ echo '';
+}
+
// If we're due to rename a file/folder...
if ($_GET['action']=="rename") {
if (is_writable($docRoot.$iceRoot.str_replace("|","/",strClean($_GET['oldFileName'])))) {