Skip to content

Commit d7c7c11

Browse files
committed
Update usage
1 parent c881540 commit d7c7c11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ const { startUpload, abortUpload } = useFileUpload<Item>({
3535
field: 'file',
3636
// Below options are optional
3737
method: 'POST',
38+
data,
3839
headers,
39-
timeout: 60000,
40+
timeout: 60 * 1000, // 60 seconds
4041
onProgress,
4142
onDone,
4243
onError,

0 commit comments

Comments
 (0)