Mojo::Upload(3pm) User Contributed Perl Documentation Mojo::Upload(3pm)NAME
Mojo::Upload - Upload container
my $upload = Mojo::Upload->new;
Mojo::Upload is a container for uploads.
Mojo::Upload implements the following attributes.
my $asset = $upload->asset;
$upload = $upload->asset(Mojo::Asset::File->new);
Asset containing the uploaded data, defaults to a Mojo::Asset::File object.
my $filename = $upload->filename;
$upload = $upload->filename('foo.txt');
Name of the uploaded file.
my $headers = $upload->headers;
$upload = $upload->headers(Mojo::Headers->new);
Headers for upload, defaults to a Mojo::Headers object.
my $name = $upload->name;
$upload = $upload->name('foo');
Name of the upload.
Mojo::Upload inherits all methods from Mojo::Base and implements the following new ones.
Alias for "move_to" in Mojo::Asset::File.
my $size = $upload->size;
Alias for "size" in Mojo::Asset::File.
my $string = $upload->slurp;
Alias for "slurp" in Mojo::Asset::File.
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Upload(3pm)
Check Out this Related Man Page
Mojo::CookieJar(3pm) User Contributed Perl Documentation Mojo::CookieJar(3pm)NAME
Mojo::CookieJar - Cookie jar for HTTP 1.1 user agents
my $jar = Mojo::CookieJar->new;
Mojo::CookieJar is a minimalistic and relaxed cookie jar for HTTP 1.1 user agents.
Mojo::CookieJar implements the following attributes.
my $max_cookie_size = $jar->max_cookie_size;
$jar = $jar->max_cookie_size(4096);
Maximum cookie size in bytes, defaults to 4096.
Mojo::CookieJar inherits all methods from Mojo::Base and implements the following new ones.
$jar = $jar->add(@cookies);
Add multiple Mojo::Cookie::Response objects to the jar.
Empty the jar.
$jar = $jar->extract($tx);
Extract response cookies from transaction.
my @cookies = $jar->find($url);
Find Mojo::Cookie::Request objects in the jar for Mojo::URL object.
$jar = $jar->inject($tx);
Inject request cookies into transaction.
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::CookieJar(3pm)
I regularly have to upload files from my Unix server to a windows box. However I'm running into and issue ftp seems to have a limit to the amount of file that it can upload in 1 shot.
What I mean is, say I have 10000 files that start with E
If I try to upload all files via mput E* is get... (7 Replies)
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`
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)
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)
In ksh, I have a file with similar rows as follows:
Department = 1234 G/L Asset Acct No = 12.0000. 2/29/2008
Department = 1234 G/L Asset Acct No = 13.0000. 3/29/2008.
I want to create a new text file that contains only the numbers and date:
1234 12.0000. 2/29/2008
1234 13.0000. ... (16 Replies)
When I upload a file 32M or larger to fails.
I can see the file being uploaded into the /tmp directory but when it gets to ~32M it dissapears.
This is from phpinfo:
upload_max_filesize 100M 100MB
post_max_size 100M 100MB
enable_dl On On
I dont get an error in the log saying im... (9 Replies)
Because some program i have installed can not upload files bigger than some size as printing, the base got a packet bigger than 'max_allowed_packet' bytes what that i need to do as written in the documentation of the program increase the value of a fileld called LimitRequestBody told that is in... (5 Replies)
I need to list the file and the filename comes from the file ListOfFile.txt.
Basicly I have a filename "ListOfFile.txt" and it contain
Example of ListOfFile.txt
/home/Dave/Program/Tran4.P... (7 Replies)
Flow of program:
C based CGI is used
-Gets called when user hits upload button(submit) ie form action = CGI1
-Does the file upload (copy to a directory etc)
JS, Ajax fucntion:
-A JS function is called when user hits upload button
-The JS function opens an Ajax request for CGI2... (8 Replies)
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?
192.168.0.18 12051718... (7 Replies)
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
I have to upload a file test_201105281100.txt to a ftp location.
The files will be created on hourly basis like test_201105281100.txt, test_201105281200.txt & so on.
After a file is uploaded successfully, I need to rename the file as test_201105281100.success & if it is not uploaded... (11 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)
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)
I am trying to upload a file to the server using bash script in html form.
<FORM NAME="FORM1" METHOD="post" enctype="multipart/form-data" ACTION="/cgi-bin/UPLOAD.sh">
<INPUT type="file" name="DOCFILE" id="DOCFILE"
How can I able to access the file in... (8 Replies)