Skip to content

Commit

Permalink
Merge pull request #3072 from aws-amplify/fileuploader/bug-fix
Browse files Browse the repository at this point in the history
chore(file-uploader): Fixed bugs related to visuals and pausing
  • Loading branch information
ErikCH authored Nov 28, 2022
2 parents 6b4980f + 30bd640 commit 0d7400f
Show file tree
Hide file tree
Showing 32 changed files with 289 additions and 127 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ import { ReactPropsTable } from '../../in-app-messaging/props'
## Overview
The File Uploader component allows your customers to seamlessly upload files to you. It's powered by the [Amplify Storage Library](https://docs.amplify.aws/lib/storage/getting-started/q/platform/js/).

<Alert variation="info">
The file uploading capabilities in these examples are stubbed out so they don't actually upload files anywhere!
<Alert variation="info" heading="Developer Preview">
The File Uploader component is in developer preview!
</Alert>

## Usage

<Alert variation="info" heading="Developer Preview">
The File Uploader component is in developer preview! It should not be used in production yet.
<Alert variation="info">
The file uploading capabilities in these examples are stubbed out so they don't actually upload files anywhere!
</Alert>


To use the File Uploader component import it into your React application with the included styles. At a minimum you must include the `level` and the `acceptedFileTypes` prop.

<Example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function FileUploaderEmail() {
hasMultipleFiles={true}
maxSize={100000000}
maxFiles={3}
isResumable={false}
isResumable={true}
/>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -158,7 +158,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -297,7 +297,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -520,7 +520,7 @@ Array [
"paddingVertical": 12,
},
Object {
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderWidth": 1,
},
null,
Expand Down Expand Up @@ -624,7 +624,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -708,7 +708,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -847,7 +847,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -1017,7 +1017,7 @@ Array [
"paddingVertical": 12,
},
Object {
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderWidth": 1,
},
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -354,7 +354,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Array [
"paddingVertical": 12,
},
Object {
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderWidth": 1,
},
null,
Expand Down Expand Up @@ -286,7 +286,7 @@ Array [
"paddingVertical": 12,
},
Object {
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderWidth": 1,
},
null,
Expand Down Expand Up @@ -497,7 +497,7 @@ Array [
"paddingVertical": 12,
},
Object {
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderWidth": 1,
},
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -362,7 +362,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -620,7 +620,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -354,7 +354,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -354,7 +354,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -158,7 +158,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -490,7 +490,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -574,7 +574,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -856,7 +856,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -940,7 +940,7 @@ Array [
style={
Object {
"alignItems": "center",
"borderColor": "hsl(210, 8%, 55%)",
"borderColor": "hsl(210, 10%, 58%)",
"borderRadius": 4,
"borderWidth": 1,
"flexDirection": "row",
Expand Down
Loading

0 comments on commit 0d7400f

Please sign in to comment.