fix for file uploading problems in File, Image, FilePile, Graphics (font) and FormHelper
This commit is contained in:
parent
6c8e840fe6
commit
ab6d0d2ce6
7 changed files with 28 additions and 6 deletions
|
|
@ -461,7 +461,9 @@ sub www_richEditAddImageSave {
|
|||
return $session->privilege->insufficient('bare') unless $base->canEdit;
|
||||
|
||||
my $storage = WebGUI::Storage::Image->create($session);
|
||||
my $filename = $storage->addFileFromFormPost('filename');
|
||||
##This is a hack. It should use the WebGUI::Form::File API to insulate
|
||||
##us from future form name changes.
|
||||
my $filename = $storage->addFileFromFormPost('filename_file');
|
||||
if ($filename) {
|
||||
$base->addChild({
|
||||
assetId => 'new',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue