html::formhandler::field::upload(3pm) [debian man page]
HTML::FormHandler::Field::Upload(3pm) User Contributed Perl Documentation HTML::FormHandler::Field::Upload(3pm)NAME
HTML::FormHandler::Field::Upload - file upload field
VERSION
version 0.40013
DESCRIPTION
This field is designed to be used with a blessed object with a 'size' method, such as Catalyst::Request::Upload, or a filehandle.
Validates that the file is not empty and is within the 'min_size' and 'max_size' limits (limits are in bytes). A form containing this
field must have the enctype set.
package My::Form::Upload;
use HTML::FormHandler::Moose;
extends 'HTML::FormHandler';
has '+enctype' => ( default => 'multipart/form-data');
has_field 'file' => ( type => 'Upload', max_size => '2000000' );
has_field 'submit' => ( type => 'Submit', value => 'Upload' );
In your controller:
my $form = My::Form::Upload->new;
my @params = ( file => $c->req->upload('file') )
if $c->req->method eq 'POST';
$form->process( params => { @params } );
return unless ( $form->validated );
You can set the min_size and max_size limits to undef if you don't want them to be validated.
DEPENDENCIES
widget
Widget type is 'upload'
AUTHOR
FormHandler Contributors - see HTML::FormHandler
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-25 HTML::FormHandler::Field::Upload(3pm)
Check Out this Related Man Page
HTML::FormHandler::Field::Password(3pm) User Contributed Perl Documentation HTML::FormHandler::Field::Password(3pm)NAME
HTML::FormHandler::Field::Password - password field
VERSION
version 0.40013
DESCRIPTION
The password field has a default minimum length of 6, which can be easily changed:
has_field 'password' => ( type => 'Password', minlength => 7 );
It does not come with additional default checks, since password requirements vary so widely. There are a few constraints in the
HTML::FormHandler::Types modules which could be used with this field: NoSpaces, WordChars, NotAllDigits. These constraints can be used in
the field definitions 'apply':
use HTML::FormHandler::Types ('NoSpaces', 'WordChars', 'NotAllDigits' );
...
has_field 'password' => ( type => 'Password',
apply => [ NoSpaces, WordChars, NotAllDigits ],
);
You can add your own constraints in addition, of course.
If a password field is not required, then the field will be marked 'noupdate', to prevent a null from being saved into the database.
ne_username
Set this attribute to the name of your username field (default 'username') if you want to check that the password is not the same as the
username. Does not check by default.
AUTHOR
FormHandler Contributors - see HTML::FormHandler
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-25 HTML::FormHandler::Field::Password(3pm)
find: /home/Upload/*: No such file or directory
I am getting a find error when I run
for FILE in `find /home/Upload/* -prune -type f -newer TIMEFILE`
do
I need to run this job every 10 minutes to upload any new files that were added. Is there an easy way to prevent this?
Thanks (6 Replies)
I am using an html form and a php upload script to upload files.
HTML form
<table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form action="upload_ac.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<td>
<table... (1 Reply)
So I want to limit the download and upload speed of a specific ip adress in a local network. To do this I are using a bach script running in a linux OS (Ubuntu 11.04). The issue here is that the upload shaper does not work. I have tried an alternate solution aswell though that does not work as... (0 Replies)
I need bash script in the below scenario.
Menu
1. Upload trace file and alert log
2. upload sundiag
3. upload diagcollection.sh
4. exit
1. Upload trace file and alert log
input the line number and search the .trc files then
Input the gateway server ip and transfer that file to... (1 Reply)