csrf token: Required.

19 views
Skip to first unread message

cosmos

unread,
Aug 17, 2010, 3:23:00 PM8/17/10
to Mongolian Symfony Users
Hi.

Flv bolon avi file upload hiih gesen chini "csrf token: Required."
bolon "The form submission cannot be processed. It probably means that
you have uploaded a file that is too big." aldaa garaad bhin.

$this->widgetSchema['file'] = new sfWidgetFormInputFileEditable(array(
'label' => 'Видео',
'file_src' => '/uploads/video/'.$this-
>getObject()->getFile(),
'is_image' => true,
'edit_mode' => !$this->isNew(),
'template' => '<div class="sublabel">%file
%<br />%input%<br />%delete% %delete_label%</div>',
));

$this->validatorSchema['file'] = new sfValidatorFile(array(
'required' => false,
'path' =>
sfConfig::get('sf_upload_dir').'/video',

handaa [Singleton LLC]

unread,
Aug 17, 2010, 9:34:58 PM8/17/10
to mongolian-s...@googlegroups.com
Hello, 
"csrf token: Required.": 
form-n configure() function dotroo 
    sfForm::disableCSRFProtection();
    sfForm::disableLocalCSRFProtection();
ingej nemne,. 

"too big file":
  $this->validatorSchema['file'] = new sfValidatorFile(array(
                       'required'   => false,
                       'path'       => sfConfig::get("sf_upload_dir")."/...",
                       'max_size'   => 10485760, // 10MB

max_size-g zaaj ogoxoos gadna, php.ini file-d 
  upload_max_filesize: 10M
  post_max_size: 10M
2 default-aaraa 2M bgaag oorchilno. 










--
You received this message because you are subscribed to the Google Groups "Mongolian Symfony Users" group.
To post to this group, send email to mongolian-s...@googlegroups.com.
To unsubscribe from this group, send email to mongolian-symfony...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongolian-symfony-users?hl=mn.


cosmos monster

unread,
Aug 18, 2010, 4:48:52 AM8/18/10
to mongolian-s...@googlegroups.com

Hi.
Баярлалаа Хандаа.
--
--------------------------------------------------------------
Hand Tel: 976.88060487                          
cosmos0...@gmail.com                  
cosmos_...@yahoo.com                 
http://twitter.com/cosmos_monster           
http://www.facebook.com/cosmos.monster

Reply all
Reply to author
Forward
0 new messages