IW 14.0.52
CG 2.8.0.181
When I run my app as a Stand Alone, the JQFileUpload component works as expected. (Standalone is used for the bulk of the testing)
When I run my app as an ISAPI (my production file), the JQFileUpload component does not upload any files. I am able to click the "Upload a file" button and then pick the file I want, but the file does not actually upload. In the code below, the SA Version shows the number of files being uploaded, the ISAPI version shows zero (0) files.
- Code: Select all
procedure TformContactEdit.fileUploadLinkedDocumentJQFileUploadOptionsComplete(Sender: TObject; AParams: TStringList);
var
strPath, strOldFilename, strNewFilename: String;
i, iFiles: Integer;
begin
inherited;
strPath := Self.fileUploadLinkedDocument.JQFileUploadOptions.UploadPath;
iFiles := Self.fileUploadLinkedDocument.FileNames.Count;
// in SA - iFiles >=1
// in ISAPI iFiles = 0
UserSession.Logit('UploadFileCount=' + IntToStr(iFiles));
// iterate through the files and update a text file log
// the log file is updated as expected in the SA application
// but the log file is NOT updated as expected in the ISAPI application because iFiles = 0
for i := 0 to iFiles - 1 do
begin
strFilename := Self.fileUploadLinkedDocument.FileNames.Names[i];
UserSession.Logit(strPath + strFilename);
end;
nd;
Any suggestions??
Scott Gast