def uploadToS3(key_meta): # Tiny key_tiny = Key(bucket) key_tiny.key = key_meta.s3_path + key_meta.filename_tiny key_tiny.set_contents_from_filename(key_meta.filename_tiny) print ("[%s] uploaded" % key_tiny.key) # Preview key_prev = Key(bucket) key_prev.key = key_meta.s3_path + key_meta.filename_prev key_prev.set_contents_from_filename(key_meta.filename_prev) print ("[%s] uploaded" % key_prev.key) # Full key_full = Key(bucket) key_full.key = key_meta.s3_path + key_meta.filename_full key_full.set_contents_from_filename(key_meta.filename_full) print ("[%s] uploaded" % key_full.key)