print "finished file import successfully\n";
};
- return $rpcenv->fork_worker('imgcopy', undef, $user, $worker);
+ my $upid = $rpcenv->fork_worker('imgcopy', undef, $user, $worker);
+
+ # apache removes the temporary file on return, so we need
+ # to wait here to make sure the worker process starts and
+ # opens the file before it gets removed.
+ sleep(1);
+
+ return $upid;
}});
1;
+libpve-storage-perl (2.3-6) unstable; urgency=low
+
+ * file upload: fix race condition
+
+ -- Proxmox Support Team <support@proxmox.com> Mon, 04 Mar 2013 09:00:05 +0100
+
libpve-storage-perl (2.3-5) unstable; urgency=low
* Allow removal of backup volumes if the user has