04-20-2020, 11:04 AM
(04-20-2020, 10:58 AM)TPiotr Wrote: I always have aRequest.Files.Count := 1
CustomRestEvents0RestEvent executes every uploaded file.
My code from DFM:
Code:object IWBS4File1: TIWBS4File
Left = 331
Top = 144
Width = 161
Height = 33
CustomAsyncEvents = <
item
EventName = 'fileuploaded'
OnAsyncEvent = IWBS4File1CustomAsyncEvents0AsyncEvent
end>
CustomRestEvents = <
item
EventName = 'uploadUrl'
OnRestEvent = IWBS4File1CustomRestEvents0RestEvent
ParseFileUpload = False
end>
Script.Strings = (
'$("#{%htmlname%}").fileinput({uploadUrl: "{%uploadUrl%}", langua' +
'ge: "pl", maxFileSize: 2097152000, showRemove: false, showPrevie' +
'w: false, allowedPreviewTypes: null});'
'$("#{%htmlname%}").off("fileuploaded").on("fileuploaded", functi' +
'on() {{%fileuploaded%}});')
Multiple = True
end
Which apptype are you using SA (IWStart) or HTTPSys(IWStartHSys) ?