Skip to content

Commit

Permalink
Added support for txt extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
palakrathi committed Mar 11, 2021
1 parent 6cc644f commit c1f17be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubric/asset-uploader",
"version": "0.0.14",
"version": "0.0.15",
"description": "Upload assets to the kubric asset system",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
Expand Down
3 changes: 2 additions & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export const isFileTypeSupported = (extension) => [
'.svg',
'.pdf',
'.sketch',
'.csv'
'.csv',
'.txt',
].includes('.' + extension.toLowerCase());

export const getChunkSizeArray = (fileSize, chunkSize) => {
Expand Down

0 comments on commit c1f17be

Please sign in to comment.