(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.
Thanks, that did the trick for me!
Hi all have anyone received this error before? Object->__call(): the method 'isOnDraftOnly' does not exist on 'SilverStripe\Assets\File'
Hi everyone, I finished my SS4 Serverless proof of concept. Please have a look! Feel free to play around or provide feedback. @theruss
SS4 Serverless Experiment. Contribute to wsheldon/silverstripe-serverless development by creating an account on GitHub.Hide attachment content
linking page to dataobject, any trick, in V3 i had no pronblem, but v4 kicking my butt
[Emergency] Uncaught InvalidArgumentException: has_one relation Product.ProductCatergory references class ProductCatergory which doesn't exist