file_too_large = The file you want to view or edit is too large (max. {SIZE} Bytes).
in_use = The file '{FILE}' is currently edited by someone else.
invalid_group = '{GROUP}' seems to be an invalid group name. Please check it and try again.
-lock_failed = Locking of '{USELIST}' failed. Try it again in a moment. If the problem persists, ask the administrator to create the lock file ('{LOCK_FILE}').
+invalid_upload = It seems that something is wrong with the file upload you want to submit.
+lock_failed = Locking of '{USELIST}' failed. Try it again in a moment. If the problem persists, ask the administrator to check the lock file ('{LOCK_FILE}') and to recreate it if necessary.
mkdir_failed = Could not create directory '{DIR}'.
mkfile_failed = Could not create file '{FILE}'.
no_copy = You have not enough permissions to copy this file.
# Execute Dev-Editor's commands
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2004-12-28
+# Last modified: 2005-01-01
#
use strict;
my $ascii = $cgi->param('ascii');
my $handle = $cgi->upload('uploaded_file');
+ return error($config->{'errors'}->{'invalid_upload'},$virtual) unless($handle);
+
# Read transferred file and write it to disk
read($handle, my $data, -s $handle);