Docs for media is missing a function call to store the media
mahmoudawadeen opened this issue · 1 comments
mahmoudawadeen commented
Existing
Issue
According to the docs for the media library, you need to use one of the "finishing methods" to store the media. Just calling addMediaFromRequest
doesn't store the file.
Suggested
$post->addMediaFromRequest('file')
->toMediaCollection();
binaryk commented
Updated! Thank you!