Sending the parent id to the file creation service

parent f65e6b21
......@@ -96,7 +96,7 @@ class MediaController extends Controller
*/
public function store(UploadMediaRequest $request) : JsonResponse
{
$savedFile = $this->fileService->store($request->file('file'));
$savedFile = $this->fileService->store($request->file('file'), $request->get('parent_id'));
if (is_string($savedFile)) {
return response()->json([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment