1
00:00:00,810 --> 00:00:06,570
I want to address something that's probably bugging me, and that is the fact that we're still technically

2
00:00:06,570 --> 00:00:09,240
storing the images on our server.

3
00:00:09,960 --> 00:00:14,640
It's just that we're letting the library, the express file upload to handle that for us.

4
00:00:15,000 --> 00:00:16,110
What am I talking about?

5
00:00:16,140 --> 00:00:23,520
Well, if we take a look at the 10 folder, we can see that every time we upload an image to the cloud

6
00:00:24,300 --> 00:00:27,030
we actually stored on a server as well.

7
00:00:27,330 --> 00:00:31,320
Granted, it is in the temp folder, but we're still doing that.

8
00:00:31,710 --> 00:00:32,820
And what is the solution?

9
00:00:33,180 --> 00:00:39,900
Well, what we could do is get the file module, the one that's built in the node, and just remove

10
00:00:39,900 --> 00:00:44,170
the file once we're successful uploading to the cloud.

11
00:00:44,270 --> 00:00:45,680
Now, how is that going to look like?

12
00:00:45,690 --> 00:00:50,970
Well, not just go up and we're going to go with CONSED and let's just call it F.

13
00:00:51,150 --> 00:00:52,560
S quiet.

14
00:00:52,560 --> 00:00:55,350
We're looking for the file system one.

15
00:00:55,770 --> 00:01:01,980
And then just for the sake of simplicity, I'll use the sink one and we just go with it first.

16
00:01:02,280 --> 00:01:06,390
And then the method name you're looking for is on a sink.

17
00:01:06,390 --> 00:01:08,940
And in here we want to pass the same thing.

18
00:01:08,970 --> 00:01:13,440
We want to pass in that files image and temp file path.

19
00:01:13,560 --> 00:01:15,000
So we'll just copy this one.

20
00:01:15,300 --> 00:01:20,400
We'll save it here and then in order to showcase everything properly.

21
00:01:20,670 --> 00:01:24,330
I'll remove the current files just so it's not confusing.

22
00:01:24,640 --> 00:01:26,640
So let me select all my temp.

23
00:01:26,640 --> 00:01:32,270
Once removed them, then we'll head back to the postman.

24
00:01:32,820 --> 00:01:37,740
So over here and let's send the image that we haven't signed yet.

25
00:01:38,050 --> 00:01:41,600
I'm going to go with computer for what's open this one.

26
00:01:41,940 --> 00:01:44,400
Let's send it now.

27
00:01:44,430 --> 00:01:52,110
We still have access to it on a closed Ngara, but if I take a look at my temp one, I cannot find it.

28
00:01:52,770 --> 00:02:01,740
So now basically what we're doing right now is sending the files to the Clumber, but we're not storing

29
00:02:01,740 --> 00:02:02,730
them locally anymore.

30
00:02:02,880 --> 00:02:04,740
Yes, temporarily we set it up.

31
00:02:05,370 --> 00:02:11,200
But once we're done with the cloud Nery, then we'll remove the file and just double check.

32
00:02:11,220 --> 00:02:12,930
I'm going to head back to the cloud now.

33
00:02:13,250 --> 00:02:15,000
I'm looking for the file upload.

34
00:02:15,420 --> 00:02:19,080
And since I can see my last image, everything works as expected.

35
00:02:19,380 --> 00:02:28,500
So we have successfully set up a pipeline where we can get the images from the user so the user can

36
00:02:28,500 --> 00:02:36,850
upload images and we store them in the cloud and we send back the euro where the image is located on

37
00:02:36,850 --> 00:02:37,320
the cloud.

