Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (24 sloc) 791 Bytes
# Copyright 2002-2007 Interchange Development Group and others
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. See the LICENSE file for details.
UserTag check-upload Order file same
UserTag check-upload PosNumber 2
UserTag check-upload Version 1.4
UserTag check-upload Routine <<EOR
sub {
use File::Copy;
my $file = shift;
my $same = shift;
my $dir = $Vend::Cfg->{ProductDir};
$same = $same ? '' : '+';
if (-s "upload/$file") {
File::Copy::copy "upload/$file", "$dir/$file$same"
or return "Couldn't copy uploaded file!";
unlink "upload/$file";
return '';
You can’t perform that action at this time.