Skip to content

Commit e61b0ca

Browse files
committed
Small readme tweak
1 parent 539372c commit e61b0ca

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,14 @@ from frameioclient import FrameioClient
5858

5959
client = FrameioClient("TOKEN")
6060

61-
filesize = os.path.getsize("sample.mp4")
6261

6362
# Create a new asset manually
6463
asset = client.assets.create(
6564
parent_asset_id="1234abcd",
6665
name="MyVideo.mp4",
6766
type="file",
6867
filetype="video/mp4",
69-
filesize=filesize
68+
filesize=os.path.getsize("sample.mp4")
7069
)
7170

7271
# Create a new folder
@@ -77,5 +76,5 @@ client.assets.create(
7776
)
7877

7978
# Upload a file
80-
client.assets.upload(asset, file)
79+
client.assets.upload(destination_id, "video.mp4")
8180
```

0 commit comments

Comments
 (0)