Skip to content

Commit

Permalink
chore: codacy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
pantoninho committed Dec 10, 2024
1 parent f884dbb commit 189d9f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ a hook for uploading files with support for concurrent multipart uploads and pro

an object with the following properties:

- `upload` (`Function`): a function that uploads a file. It receives an object or an array of objects with the following properties:
- `upload` (`Function`): a function that uploads a file. It receives an object or an array of objects with the following properties:
- `file` (`File`): the file to upload.
- `to` (`string`): URL to upload the file to.
- `uploads` (`object`): a object containing the upload progress for each file. the keys are the filenames and their destinations, and the values are objects with the following properties:
- `uploads` (`object`): a object containing the upload progress for each file. the keys are the filenames and their destinations, and the values are objects with the following properties:
- `key` (`string`): a unique key for the upload.
- `isUploading` (`boolean`): a boolean indicating whether the file is being uploaded.
- `progress` (`number`): the file upload progress as a number between `0` and `1`.
- `isUploading` (`boolean`): a boolean indicating whether the file is being uploaded.
- `progress` (`number`): the file upload progress as a number between `0` and `1`.
- `loaded` (`number`): the number of bytes uploaded.
- `total` (`number`): the total file size in bytes.
- `data` (`any`): data returned by the response
- `error` (`Error`): error returned by the response
- `error` (`Error`): error returned by the response

## example

Expand Down

0 comments on commit 189d9f6

Please sign in to comment.