![]() You can just say first_bucket.upload_file(), and from here what you’re going to need to do is pass in a Filename, which is first_file_name, and then a key, which is also first_file_name.Ġ1:29 Go ahead and run that. Now let’s look at how you can upload a file from the Bucket instance.Ġ1:03 You should still have your first_bucket, which has the bucket name here. That’s good!Ġ0:37 Because then, you can just say first_object.upload_file() and then pass in that first_file_name.Ġ0:48 When you run this, you shouldn’t see any errors and now that file has been uploaded to S3. First, let’s try to upload a file using the Object instance.Ġ0:22 Looking at the interpreter, if you still have the first_object Object, you should be able to run that and you’ll see that it has the bucket_name associated with it, and then the filename for the key. You can do this from an Object instance, from a Bucket instance, or from the client.Ġ0:11 We’re going to focus on the Object and Bucket instances, because these are very powerful ways of working with the AWS API. There are three ways you can upload a file. 00:00 You’re finally ready to upload files to S3.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |