File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const FileInput: React.ComponentType<FileInputProps> = withApollo(
2222 public static defaultProps = {
2323 maxFiles : 1 ,
2424 value : null ,
25+ sessionCache : false ,
2526 } ;
2627
2728 public static getDerivedStateFromProps ( props : FileInputProps , state : FileInputState ) {
@@ -53,7 +54,7 @@ const FileInput: React.ComponentType<FileInputProps> = withApollo(
5354 }
5455
5556 public async initFilestack ( ) {
56- const { client } = this . props ;
57+ const { client, sessionCache } = this . props ;
5758
5859 let response = null ;
5960
@@ -74,6 +75,7 @@ const FileInput: React.ComponentType<FileInputProps> = withApollo(
7475 policy,
7576 signature,
7677 } ,
78+ sessionCache,
7779 } ) ;
7880 }
7981
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export type FileInputProps = {
2020 } ) => React . ReactNode ;
2121 public ?: boolean ;
2222 maxFiles ?: number ;
23+ sessionCache ?: boolean ;
2324 onUploadDone ?: ( value : FileInputValue , originalFile ?: OriginalFileInputValue ) => Promise < FileInputValue > ;
2425 value ?: FileInputValue | null ;
2526} ;
You can’t perform that action at this time.
0 commit comments