fix generic package uploading

This commit is contained in:
Colin Kuskie 2007-02-27 19:05:45 +00:00
parent ff03aebfd3
commit 218415ad27
2 changed files with 3 additions and 1 deletions

View file

@ -9,6 +9,7 @@
- fix: Outdated info in Env macro help (perlDreamer Consulting, LLC)
- fix: Calendar: Only Turn Admin On group can add events (perlDreamer Consulting, LLC)
- fix: Event -> canEdit (perlDreamer Consulting, LLC)
- fix: import packages broke (perlDreamer Consulting, LLC)
- fix: A bunch of bugs in fileImport.pl and improved its performance very
significantly (Martin Kamerbeek / Oqapi)

View file

@ -258,7 +258,8 @@ sub www_importPackage {
##This is a hack. It should use the WebGUI::Form::File API to insulate
##us from future form name changes.
$storage->addFileFromFormPost("packageFile_file",1);
$storage->addFileFromFormPost("packageFile",1);
use Data::Dumper;
my $error = "";
if ($storage->getFileExtension($storage->getFiles->[0]) eq "wgpkg") {