You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/files.md
+37-18Lines changed: 37 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ file's contents, upload new versions, and perform other common file operations
17
17
-[Automatic Uploader](#automatic-uploader)
18
18
-[Upload new file](#upload-new-file)
19
19
-[Upload new file version](#upload-new-file-version)
20
+
-[Preflight check before upload](#preflight-check-before-upload)
20
21
-[Resume Upload](#resume-upload)
21
22
-[Abort Chunked Upload](#abort-chunked-upload)
22
23
-[Manual Process](#manual-process)
@@ -200,39 +201,39 @@ without aborting the entire upload, and failed parts can then be retried.
200
201
201
202
#### Upload new file
202
203
203
-
The SDK provides a method of automatically handling a chunked upload. First get a folder you want to upload the file to. Then call [`folder.get_chunked_uploader(file_path, rename_file=False)`][get_chunked_uploader_for_file] to retrieve a [`ChunkedUploader`][chunked_uploader_class] object. Calling the method [`chunked_upload.start()`][start] will kick off the chunked upload process and return the [File][file_class]
204
+
The SDK provides a method of automatically handling a chunked upload. First get a folder you want to upload the file to.
205
+
Then call [`folder.get_chunked_uploader(file_path, rename_file=False)`][get_chunked_uploader_for_file] to retrieve
206
+
a [`ChunkedUploader`][chunked_uploader_class] object. Calling the method [`chunked_upload.start()`][start] will
207
+
kick off the chunked upload process and return the [File][file_class]
print(f'File "{uploaded_file.name}" uploaded to Box with file ID {uploaded_file.id}')
231
229
```
232
230
233
231
#### Upload new file version
234
232
235
-
To upload a new file version for a large file, first get a file you want to replace. Then call [`file.get_chunked_uploader(file_path)`][get_chunked_uploader_for_version] to retrieve a [`ChunkedUploader`][chunked_uploader_class] object. Calling the method [`chunked_upload.start()`][start] will kick off the chunked upload process and return the updated [File][file_class].
233
+
To upload a new file version for a large file, first get a file you want to replace.
234
+
Then call [`file.get_chunked_uploader(file_path)`][get_chunked_uploader_for_version]
235
+
to retrieve a [`ChunkedUploader`][chunked_uploader_class] object. Calling the method [`chunked_upload.start()`][start]
236
+
will kick off the chunked upload process and return the updated [File][file_class].
0 commit comments