ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10778


Ignore:
Timestamp:
Feb 16, 2009, 7:27:46 PM (11 years ago)
Author:
ShogoKawahara
Message:

#3588:fixed MemberImageForm? doesn't limit image file size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/form/MemberImageForm.class.php

    r10777 r10778  
    2222    $this->member = $this->getOption('member');
    2323    $this->setWidget('file', new sfWidgetFormInputFile());
    24     $this->setValidator('file', new opValidatorImageFile());
     24    $this->setValidator('file', new opValidatorImageFile(array('max_size' => 300*1024)));
    2525    $this->widgetSchema->setNameFormat('member_image[%s]');
    2626  }
Note: See TracChangeset for help on using the changeset viewer.