Docs for media is missing a function call to store the media
mahmoudawadeen opened this issue · comments
Mahmoud Awadeen 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();
Lupacescu Eduard commented
Updated! Thank you!