Dancer::Request::Upload(3pm) User Contributed Perl Documentation Dancer::Request::Upload(3pm)NAME
Dancer::Request::Upload - class representing file uploads requests
DESCRIPTION
This class implements a representation of file uploads for Dancer. These objects are accesible within route handlers via the
request->uploads keyword. See Dancer::Request for details.
METHODS
filename
Returns the filename as sent by the client.
basename
Returns basename for "filename".
tempname
Returns the name of the temporary file the data has been saved to.
This will be in e.g. /tmp, and given a random name, with no file extension.
link_to
Creates a hard link to the temporary file. Returns true for success, false for failure.
$upload->link_to('/path/to/target');
file_handle
Returns a read-only file handle on the temporary file.
content
Returns a scalar containing the contents of the temporary file.
copy_to
Copies the temporary file using File::Copy. Returns true for success, false for failure.
$upload->copy_to('/path/to/target')
size
The size of the upload, in bytes.
headers
Returns a hash ref of the headers associated with this upload.
type
The Content-Type of this upload.
AUTHORS
This module as been writen by Alexis Sukrieh, heavily based on Plack::Request::Upload. Kudos to Plack authors.
SEE ALSO
Dancer
perl v5.14.2 2011-11-30 Dancer::Request::Upload(3pm)
Check Out this Related Man Page
Dancer::Engine(3pm) User Contributed Perl Documentation Dancer::Engine(3pm)NAME
Dancer::Engine - base class for Dancer engines
SYNOPSIS
my $engine = Dancer::Engine->build( Serializer => 'JSON', $configuration );
DESCRIPTION
Dancer has various engines such Serializer engines, Template engines, Logger engines and Session handlers engines. This is the base class
for all Dancer engines.
If you're writing an engine of a common type (such as those mentioned above), you probably want to simply use their base class, which in
turn use Dancer::Engine. For example, Template engines inherit from Dancer::Template::Abstract and Serializer engines inherit from
Dancer::Serializer::Abstract. Those Abstract base classes inherit from Dancer::Engine.
If a new type of Dancer engine is created, it is best it inherits from this class.
ATTRIBUTES
name
The name of the engine, such as JSON, or Simple.
type
The type of the engine, such as Serializer, or Session.
METHODS /SUBROUTINES
config
Fetches the configuration of the engine.
my $configuration = $engine->config;
You can only set the configuration at initialization time, not after.
build
Builds and returns the engine.
my $engine = Dancer::Engine->build( $type => $name, $config );
AUTHOR
Alexis Sukrieh
LICENSE AND COPYRIGHT
Copyright 2009-2010 Alexis Sukrieh.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as
published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
perl v5.14.2 2011-11-30 Dancer::Engine(3pm)
Hi all,
My first post here.
I need a small script to check the directory permssions on my /home/uploads and if there are any newly created directory in uploads chmod them to 1777.
The upload directory is for my users who upload their pictures and I by default their directories are given... (4 Replies)
We have just added 5 macs to what used to be an all Windows shop. Everything works great except the macs upload to a windows 200 file server extremly slow. Are there any suggestions to make the upload faster? (2 Replies)
I am not a C programmer, so I was hoping someone can help with the following: vsftpd is programmed in C, but it has a fatal flaw whereby uploads can be copied by Samba before the upload is complete (this includes the latest vsftpd daemon) This is because vsftpd does not support file locking, unlike... (2 Replies)
Hi, I'm new to unix/ Perl CGI. I have written Perl CGI scripts to upload a file into 2 servers at the same time using url redirection. But what happens is when i upload the file, it is getting uploaded in the first server properly and an empty file is uploaded in the second server( with the same... (7 Replies)
Hi,
I'm suppose to upload a file to my company's client server. I used kftp grabber in my PCLinuxOS to do the file transfer.
The client has given a username and password to upload the file in their server. When I log in to the server, I cannot access root or home directory, nor can I access... (1 Reply)
I have two files, uploads.txt and downloads.txt. I would like to combine the columns of these files based on the ip address. How can I best do this?
Uploads.txt
192.168.0.147 1565369
192.168.0.13 1664855
192.168.0.6 1332868
Downloads.txt
192.168.0.147 9838820
192.168.0.18 12051718... (7 Replies)
Hey everyone. I have 2 different linux servers (each one is through a different web hosting company). On both servers I have the exact same PHP file upload script that allows users to upload a file or image to the server (everything on both servers is identical).
On server #1 the "attachments"... (5 Replies)
Does anyone know how can I determine which user is UPLOADING via http protocol? Like sending video on youtube?
Or maybe how to throttle multimedia uploads ? Or any uploads?
maybe get packet size? (9 Replies)
i have a file which has the following contents:
Dated: 8/16/2011
Time : 0900
==============
--------------------------------------
Data Upload Time =1:53:37 PM
--------------------------------------
METAR OPMT 13010KT 6000 SCT040 37/26 Q0997 NO... (4 Replies)
Can someone try to compile this older version of xtide (attached) on 64-bit Intel/Linux and upload the xttpd binary? I have a friend who needs an older version up and running because the newer version does not support his required harmonic files.
Thanks! (7 Replies)
Hi,
I want to create a script that parses the content of a file (on each line there is a filename with full path containing the latest fiels created on that day) and uploads every file to a ftp location.
Any elegant way to do it ? (4 Replies)
Hi,
I have requirement for automation, wanna confirm whether is it possible in shell scripting.
1) Need to read data from excel sheet
2) And upload the details in html page
I know first requirement is possible by converting excel into csv form, but not sure about the second one.
If... (6 Replies)