Dynamic file not getting attached
Closed this issue · 2 comments
dathwa commented
Hello.
Not a bug as such, but in the example here - the file is no longer attached, and we've been getting the "A virtual product without a file attachment has been purchased. You need to fix this!" message.
Changing this line
$grant->file = $path;
to
$grant->file = (new \System\Models\File)->fromFile($path);
fixed it for me.
SamBrishes commented
Hello,
thanks for your bug report. I've updated the documentation according to your note, as this will be updated along with the release cycle, the update may unfortunately take some time until the release of v3.2.0. Especially as the docs-pages itself will also be changed completely in the next release.
Sincerely,
Sam
SamBrishes commented
This issue has been fixed and released with v3.2.0 / v3.2.1.