try hard coding this to
Hi all, I'm drawing a blank. What's the best way to create a File object (and save a generated file into that)?
(cheatt and look at the savInto of upload field ) 😛
How is the file being generated?
Once you have a file object (
$myFile = File::create();) You can use the
->setFromStream() methods to get the data into it.