Python Web Apps that Fly with CDNs Transcripts
Chapter: Large Content
Lecture: Uploading files

Login or purchase this course to watch this video and the rest of the course contents.
0:00 How do we get our files up there? Well, we saw over here that it says FTP and API access, or we can work here. And again, if you want to do that,
0:11 but what I'm gonna do is use something else. And I'm gonna go over here and it says, you can use any kind of FTP or other API tool to talk to this.
0:21 And it gives you basically the login information here. All right, so they say you could use FileZilla.
0:29 I'm going to choose something that's really awesome for the Mac called Transmit. The local company here in Portland called Panic.
0:36 And this is a super nice app. It lets you work with things like this storage, but it also lets you work with Backblaze, with S3,
0:46 a whole bunch of different places that are pretty excellent. So I'm going to fire this up.
0:51 Again, if you're not on a Mac, maybe check out FileZilla as well. So down here, we've got it all fired up and I'm gonna add a new server.
1:04 A whole bunch of choices here. And the one that we wanna pick that works here is FTP with explicit TLS SSL. We'll give it a name.
1:13 I'll call this funny video user generated content. Let's call it that. Next, and we need to have information about where's the server?
1:23 What is my username? And so on. That's all over here. Close that up. So the host name is la.storage.bunny.CDN port default is fine.
1:37 My username is actually the storage I've made. Then everything else here is the default other than I got a copy of the password from here to there.
1:49 I'm not going to show you that there's the password, although it doesn't really matter
1:52 if you were to see it because I'm going to delete this, the storage zone just to clean
1:57 up my bunny account after this. I don't need it hanging around. Now let's see how we do. Hit save,
2:02 double click. What's going to happen? Oh yeah, there it is. So let's go to the desktop where
2:11 I had those files. And here we have our self-hosted videos. Now one thing that's weird about this
2:19 interaction is I think you remember which site this was. So I can create a new folder here and and say, I call it a test, but notice it says,
2:29 oh, you can't rename it. You can create folders, but you can't rename them. (sighs) Probably happens in all the different clients here.
2:37 So you can't really create a folder and put them in there. The way that I always manage that is I'll create a folder
2:43 that I want to put up there and then just drag the whole folder and that'll name it. So let's do this. And while we're at it, we can delete this one.
2:55 Let's see how we're doing here. This is going to take a while. You can see about four minutes at a time. I have a nice fast internet connection down.
3:05 Unfortunately, the upload speed is as fast as you can get it, but it's not that fast around here.
3:11 So I'm going to zoom through this section, and then when it's all uploaded, we'll go from there. Excellent.
3:28 Everything is all situated over here. And let's go back to our file manager. We should be able to refresh this. There we go.
3:37 There's our self-hosted videos all uploaded. Now the names might look a little weird, but those are the IDs in the database.
3:44 So they should be really easy to connect back. Speaking of connecting back, we're going to find we have to connect a pull zone still
3:52 before this actually will do anything. But at least we've got our tools connected to the object storage, and we've uploaded our files using them.


Talk Python's Mastodon Michael Kennedy's Mastodon