Skip to content

Commit

Permalink
Merge pull request #80 from JooLuiz/bugfix/upload-only-xlsx-and-xls
Browse files Browse the repository at this point in the history
[BugFix] Restricting the Quick Order Upload to accept only .xls and .xlsx files
  • Loading branch information
wender authored Jan 11, 2022
2 parents 4dd06ea + cc53799 commit a793a04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Restricting the Quick Order Upload to accept only .xls and .xlsx files

## [3.4.1] - 2022-01-07

## [3.4.0] - 2021-12-29
Expand Down
2 changes: 1 addition & 1 deletion react/UploadBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ const UploadBlock: StorefrontFunctionComponent<UploadBlockInterface &
<div
className={`bg-base t-body c-on-base ph6 pb6 br3 b--muted-4 ${handles.dropzoneContainer}`}
>
<Dropzone onDropAccepted={handleFile} onFileReset={handleReset}>
<Dropzone onDropAccepted={handleFile} onFileReset={handleReset} accept=".xls,xlsx">
<div className="pt7">
<div>
<span className={`f4 ${handles.dropzoneText}`}>
Expand Down

0 comments on commit a793a04

Please sign in to comment.