WEBVTT

00:00.800 --> 00:01.440
Hard.

00:01.440 --> 00:08.120
Everyone in this video we will know the released media file.

00:09.280 --> 00:15.760
Okay, so let's understand how we can delete the media file.

00:16.560 --> 00:22.680
If you remember in the schema this is the media types okay.

00:23.160 --> 00:27.520
We don't have the some ID unique ID.

00:27.880 --> 00:29.800
So how we can delete that.

00:30.560 --> 00:36.520
And that's my mistake from the Cloudinary controller.

00:38.320 --> 00:45.160
Well Maxwell we will return the public ID from the result okay.

00:47.480 --> 00:48.640
The public address.

00:48.680 --> 00:56.400
This is the unique identifier from the image or the media file okay.

00:56.440 --> 01:04.080
This public array is very important, But somehow I forgot that.

01:06.880 --> 01:07.600
It was here.

01:09.400 --> 01:16.080
So listing the ID is the unique identifier of the entire image.

01:17.080 --> 01:20.240
So after that, let me create a.

01:22.560 --> 01:23.480
Registry.

01:25.560 --> 01:26.760
And inside here.

01:28.800 --> 01:30.480
Go to the upload media.

01:31.360 --> 01:35.520
Let's build the public addy.

01:35.920 --> 01:36.560
Remember.

01:45.920 --> 01:47.040
Uh, sorry.

01:47.640 --> 01:49.000
When we block.

01:52.440 --> 01:53.480
We will need Addy.

01:59.040 --> 02:00.160
Let me show you.

02:01.850 --> 02:03.050
Inside a block.

02:03.050 --> 02:06.010
Multiple file I will send again.

02:12.090 --> 02:14.890
Uh, we don't see.

02:20.050 --> 02:20.770
The reason?

02:20.770 --> 02:24.970
Because Maxwell will put that in here, so.

02:33.930 --> 02:37.410
Okay, let me send it again.

02:41.810 --> 02:42.210
Okay.

02:42.210 --> 02:44.490
We already got the unit identifier.

02:44.930 --> 02:45.250
Okay.

02:45.250 --> 02:55.530
This is the ID, and, uh, after that, let's go to the bus service.

02:56.250 --> 02:58.010
We already got this thing.

02:58.290 --> 02:58.730
Okay.

02:58.770 --> 03:00.850
And now let me use the remote.

03:08.250 --> 03:17.770
So what we need to do, I will put the boss ID and the media ID, okay, this is the idea, right?

03:17.810 --> 03:21.970
But I think I will call the manager ID three screen right now.

03:22.890 --> 03:25.850
And firstly we need to find the boss.

03:25.850 --> 03:26.330
Right.

03:26.810 --> 03:29.370
We need to find the boss as usual.

03:30.290 --> 03:36.330
And after that we need to update the media view.

03:37.810 --> 03:38.210
Hmm.

03:38.730 --> 03:42.730
I think we we will change a little bit.

03:44.770 --> 03:45.730
From here.

03:46.490 --> 03:51.810
I will call the media files, but better, right?

03:53.650 --> 03:54.290
Alright.

03:54.610 --> 03:59.290
Jen over here will be fine.

04:00.570 --> 04:01.050
Okay.

04:01.290 --> 04:03.450
After we got the media file.

04:06.770 --> 04:07.570
We need to.

04:09.970 --> 04:12.250
Your media file dot filter.

04:18.530 --> 04:20.690
We need to filter the media file.

04:24.410 --> 04:25.170
With the.

04:28.890 --> 04:31.130
Array equal with the array.

04:33.010 --> 04:35.050
We will filter our list.

04:40.730 --> 04:44.650
And after that why this.

04:47.250 --> 04:49.690
Model side okay.

04:49.730 --> 04:51.010
And these are the controller.

04:52.010 --> 04:56.410
Let me ask you this.

05:03.130 --> 05:03.490
Mm.

05:06.170 --> 05:06.890
Let's see.

05:10.810 --> 05:11.130
Mm.

05:13.890 --> 05:14.210
Mm.

05:14.250 --> 05:16.890
I think I will use exactly the same.

05:30.930 --> 05:31.570
Right here.

05:31.570 --> 05:35.730
We need to create a detail to delete.

06:04.260 --> 06:13.180
So here we only need the media to be strict and is not empty.

06:14.660 --> 06:15.140
Okay.

06:15.420 --> 06:16.060
Like that.

06:16.900 --> 06:18.900
And right here.

06:54.500 --> 06:55.540
We are.

07:04.580 --> 07:09.220
And actually right here this is the video right.

07:09.380 --> 07:13.380
So for that reason we need to refactor a little bit.

07:17.300 --> 07:18.700
More over here.

07:23.540 --> 07:28.220
So we had asked okay because we need a validation on the details.

07:28.220 --> 07:31.340
For that reason we need to create a DTO also.

07:32.740 --> 07:33.340
Okay.

07:33.380 --> 07:34.860
So let's test that.

07:38.220 --> 07:38.940
Right here.

07:39.020 --> 07:45.660
After we have our data I will basically take right away.

07:46.580 --> 07:48.060
And I will close.

07:55.380 --> 07:59.340
Go to apply boss.

08:02.940 --> 08:10.220
Are replaced with some idea via remote URL.

08:13.060 --> 08:17.380
Send us after successfully.

08:17.420 --> 08:18.820
Let's check the database.

08:20.300 --> 08:20.820
Okay.

08:33.540 --> 08:33.900
Uh.

08:40.020 --> 08:42.540
Oh, the reason?

08:43.140 --> 08:48.540
Because we just modify the column for a reason.

08:49.700 --> 08:50.660
We need to.

08:53.900 --> 08:54.340
Here.

09:01.980 --> 09:02.860
Video file.

09:09.980 --> 09:11.260
Let me say media.

09:14.700 --> 09:16.220
Insider is born.

09:19.100 --> 09:20.500
With a pass.

09:39.980 --> 09:43.140
I cannot let me release.

09:48.020 --> 09:51.300
And create the new one.

09:58.300 --> 09:58.700
-- me!

09:58.700 --> 09:59.180
Daddy!

10:00.420 --> 10:00.700
What?

10:00.700 --> 10:01.260
Over here.

10:02.620 --> 10:02.940
So.

10:06.580 --> 10:07.340
Refresh.

10:17.820 --> 10:18.180
Over.

10:18.180 --> 10:19.940
We already got the media file.

10:23.980 --> 10:25.100
With a bubbly array.

10:25.540 --> 10:26.020
Right.

10:26.580 --> 10:32.660
Now, let me come over here and let me show you inside here.

10:33.100 --> 10:34.620
Let's show the delete.

10:37.380 --> 10:38.140
Duplicate.

10:42.820 --> 10:43.460
Media.

10:58.220 --> 10:59.980
Passwords is the media ID.

11:03.110 --> 11:04.430
And this is the most I'd.

11:13.470 --> 11:16.070
Say success.

11:16.830 --> 11:17.910
And let's see.

11:18.390 --> 11:19.550
Let me refresh.

11:31.790 --> 11:32.790
Okay, cool.

11:33.190 --> 11:35.350
We already removed.

11:35.390 --> 11:35.990
Right.

11:36.150 --> 11:37.470
The media file.

11:38.590 --> 11:39.230
All right.

11:43.390 --> 11:43.990
Okay.

11:44.030 --> 11:46.030
The logic is already work.

11:47.670 --> 11:50.790
And let me get on bus again.

11:52.750 --> 11:53.110
Okay.

11:53.150 --> 11:56.150
Media file with split file over here.

11:56.790 --> 11:58.790
So that is okay.

11:58.830 --> 12:00.270
That's for the video.

12:00.270 --> 12:02.110
And I will see you in the next one.
