From: Sam T. <sa...@tr...> - 2005-11-21 21:44:34
|
On Mon, 21 Nov 2005, Nick Mohoric wrote: > I've been trying to insert articles and images into Krang without using the > interface, and I've got the article stuff working fairly easily but I'm > having issues getting the media files to work correctly. I think my issue is > with the media filehandle. I can't find anywhere in the documentation or > code that explains exactly WHAT this filehandle is supposed to be. Is this > just a path to where the temporary file is on the drive? It's supposed to be a filehandle, which is what Perl gives you when you call open(). For example, let's say my file is /home/sam/face.jpg: open(my $fh, "<", "/home/sam/face.jpg") or die "Unable to open: $!"; Now $fh contains a filehandle suitable for reading the contents of /home/sam/face.jpg. -sam |