@@ -190,7 +190,7 @@ export function DownloadOptionPanel ({groupKey='DownloadDialog', cutoutSize, hel
190190 const maskPanel = ( < BgMaskPanel key = { bgKey } componentKey = { bgKey }
191191 onMaskComplete = { ( ) => hideDownloadDialog ( ) } /> ) ;
192192
193- const dlTitle = get ( dlParams , 'BaseFileName ' , 'Download' + '-' + dlTitleIdx ) ; //use BaseFileName as title as well
193+ const dlTitle = get ( dlParams , 'Title ' , 'Download' + '-' + dlTitleIdx ) ; //title will also be filename of the downloaded file
194194 const preTitleMessage = dlParams ?. PreTitleMessage ?? '' ;
195195 return (
196196 < Stack sx = { { m :1 / 2 , position : 'relative' , minWidth :400 , height :'auto' , ...style } } >
@@ -241,9 +241,8 @@ DownloadOptionPanel.propTypes = {
241241
242242 validateOnSubmit : PropTypes . func , // to validate form inputs on submit
243243 dlParams : PropTypes . shape ( { // these params should be used as defaults value if they appears as input fields
244- TitlePrefix : PropTypes . string , // default title of the download.. an index number will be appended to this.
245244 FilePrefix : PropTypes . string , // packaged file prefix
246- BaseFileName : PropTypes . string , // zip file name
245+ Title : PropTypes . string , // title in the UI, also the file name of the downloaded file
247246 DataSource : PropTypes . string ,
248247 MaxBundleSize : PropTypes . number ,
249248 FileGroupProcessor : PropTypes . string . isRequired ,
@@ -255,7 +254,7 @@ export function TitleField({style={}, value, label='Title:', size=30}) {
255254 return (
256255 < ValidationField
257256 forceReinit = { true }
258- fieldKey = 'BaseFileName ' //title on the UI will also be used as file name on the backend
257+ fieldKey = 'Title ' //title will also be used as the filename on the server
259258 tooltip = 'Enter a description to identify this download.'
260259 { ...{ validator :NotBlank , initialState :{ value} , label, size, style} }
261260 />
0 commit comments