[otrs-cvs] otrs/Kernel/System/Web Request.pm,1.47,1.48
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/Kernel/System/Web
In directory lancelot:/tmp/cvs-serv6626/Kernel/System/Web
Modified Files:
Request.pm
Log Message:
Rectified POD.
Author: mg
Index: Request.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Web/Request.pm,v
retrieving revision 1.47
retrieving revision 1.48
diff -2 -u -d -r1.47 -r1.48
--- Request.pm 3 Dec 2012 11:38:40 -0000 1.47
+++ Request.pm 3 Dec 2012 14:18:02 -0000 1.48
@@ -229,24 +229,20 @@
=item GetUploadAll()
-to get file upload
+gets file upload data.
my %File = $ParamObject->GetUploadAll(
- Param => 'FileParam',
- Source => 'string',
+ Param => 'FileParam', # the name of the request parameter containing the file data
+ Source => 'string', # 'string' or 'file', how the data is stored/returned, see below
);
- to get file upload without uft-8 encoding
-
- my %File = $ParamObject->GetUploadAll(
- Param => 'FileParam',
- Source => 'string',
+ returns (
+ Filename => 'abc.txt',
+ ContentType => 'text/plain',
+ Content => 'Some text',
);
- print "Filename: $File{Filename}\n";
- print "ContentType: $File{ContentType}\n";
- print "Content: $File{Content}\n";
-
- If param Source is file, the the content contains the file location
- in your local file system.
+ If you send Source => 'string', the data will be returned directly in
+ the return value ('Content'). If you send 'file' instead, the data
+ will be stored in a file and 'Content' will just return the file name.
=cut
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log