File tree 2 files changed +1
-4
lines changed
web/app/components/base/file-uploader
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -244,9 +244,6 @@ def _is_file_valid_with_config(
244
244
):
245
245
return False
246
246
247
- if config .allowed_file_upload_methods and file_transfer_method not in config .allowed_file_upload_methods :
248
- return False
249
-
250
247
if input_file_type == FileType .IMAGE and config .image_config :
251
248
if config .image_config .transfer_methods and file_transfer_method not in config .image_config .transfer_methods :
252
249
return False
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ export const useFile = (fileConfig: FileUpload) => {
211
211
type : '' ,
212
212
size : 0 ,
213
213
progress : 0 ,
214
- transferMethod : TransferMethod . remote_url ,
214
+ transferMethod : TransferMethod . local_file ,
215
215
supportFileType : '' ,
216
216
url,
217
217
isRemote : true ,
You can’t perform that action at this time.
0 commit comments