Re: [Arsperl-users] Attachments via ars_CreateEntry
Brought to you by:
jeffmurphy
|
From: White, L. <lin...@ed...> - 2008-07-16 16:44:26
|
It's entirely possible. I do something similar to the
following(assuming that your Field ID->Value inforamtion is stored in an
array called @ticket_information):
...
my @size = ();
my %attachment = ();
if(-f $file)
{
@size = stat($file);
%attachment = (file => $file, size => $size[7]);
push(@ticket_information, 'fieldid', \%attachment); #by ref
}
...
my $ticket = ars_CreateEntry($ctrl, $schema, @ticket_information) ||
return error($ctrl, $ars_errstr);
-----Original Message-----
From: ars...@ar...
[mailto:ars...@ar...] On Behalf Of Steve McDonald
Sent: Wednesday, July 16, 2008 12:02 PM
To: ARSperl User Discussion
Subject: [Arsperl-users] Attachments via ars_CreateEntry
Hello!
Is it possible to submit an attachment via ars_CreateEntry? I have a
webform with an attachment field and would like to submit the attached
file with the ticket.
Thanks in advance for your help.
Steve
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|