OpenFra...nt::Blob(3)

πŸ“¦
version 3.05 Β· 2 versions
, in fedora 43

πŸ’– OpenFra...nt::Blob(3) πŸ’–

okay so bestie, welcome to the OpenFrame::Argument::Blob page, from the User Contributed Perl Documentation collection. this is the manual for handling filehandle-style data in network requests. yes, it's as niche as it sounds and yes, it's lowkey iconic. let's go πŸ’…


✨ NAME ✨

OpenFrame::Argument::Blob β€” handling for filehandle-style data in network requests


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole vibe, fr fr:

use OpenFrame::Argument::Blob;

my $blob = OpenFrame::Argument::Blob->new();

$blob->filename( 'somefilename.dat' );
$blob->filehandle( $fh );

my $filename   = $blob->filename;
my $filehandle = $blob->filehandle;

see? you make one, you set the filename, you set the filehandle, and then you read them right back out. main character energy honestly ✨


🌸 DESCRIPTION 🌸

OpenFrame::Argument::Blob is a class to support things such as browser-based uploads. it provides a mechanisms to get the filehandle and filename of the uploaded element.

(not me keeping that "a mechanisms" exactly as written β€” the grammar is a little goofy but that's the original, no cap 🫢)

so basically: someone uploads a file through a browser, and you need to get your hands on which file and the handle to its data. that's the whole job. that's the assignment. and it ate. πŸ”₯


πŸ’œ METHODS πŸ’œ

filename( [ SCALAR ] )

The filename() method gets/sets the value of the filename attribute of the class. This should return the filename of the uploaded data.

give it a scalar and it stores it, call it with nothing and it hands the filename right back to you. obsessed. πŸŽ€

filehandle( [ IO::Handle ] )

The filehandle method gets/sets the value of the filehandle that points to the uploaded data.

same deal β€” pass in an IO::Handle, or call it empty and get the handle that points at the uploaded data. periodt. πŸ’…


🌈 INHERITANCE 🌈

OpenFrame::Argument::Blob inherits from the OpenFrame::Object class and provides all methods that its super class does.

so everything OpenFrame::Object can do? yeah, this baby can do it too. it's giving nepo baby but make it useful πŸ‘‘βœ¨


πŸ™ˆ AUTHOR πŸ™ˆ

James A. Duncan <jduncan@fotango.com>


Copyright 2002 Fotango Ltd. All Rights Reserved.

This code is released under the GNU GPL and Artistic licenses.

two licenses bestie, you get to pick, that's the generosity πŸ’–

and that's the whole page! slay πŸ¦‹

this was documented by User Contributed Perl Documentation, perl v5.42.0, dated 2025-07-25. love that for us. bye bestie, go upload something cute πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from