Mojo::Upload man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Mojo::Upload(3)	      User Contributed Perl Documentation      Mojo::Upload(3)

NAME
       Mojo::Upload - Upload Container

SYNOPSIS
	 use Mojo::Upload;

	 my $upload = Mojo::Upload->new;
	 print $upload->filename;
	 $upload->move_to('/foo/bar/baz.txt');

DESCRIPTION
       Mojo::Upload is a container for uploads.

ATTRIBUTES
       Mojo::Upload implements the following attributes.

   "asset"
	 my $asset = $upload->asset;
	 $upload   = $upload->asset(Mojo::Asset::File->new);

       Asset containing the uploaded data, defaults to a Mojo::Asset::File
       object.

   "filename"
	 my $filename = $upload->filename;
	 $upload      = $upload->filename('foo.txt');

       Name of the uploaded file.

   "headers"
	 my $headers = $upload->headers;
	 $upload     = $upload->headers(Mojo::Headers->new);

       Headers for upload, defaults to a Mojo::Headers object.

   "name"
	 my $name = $upload->name;
	 $upload  = $upload->name('foo');

       Name of the upload.

METHODS
       Mojo::Upload inherits all methods from Mojo::Base and implements the
       following new ones.

   "move_to"
	 $upload->move_to('/foo/bar/baz.txt');

       Move uploaded data to a specific file.

   "size"
	 my $size = $upload->size;

       Size of upload in bytes.

   "slurp"
	 my $string = $upload->slurp;

       Read all upload data at once.

SEE ALSO
       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.14.1			  2011-09-10		       Mojo::Upload(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net