Page 1 of 1

SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 01:42
by ScottWGast
I recently updated my IW components for DXE2:

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

Re: SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 01:58
by ScottWGast
Getting "Unknown Error" and "Upload falied" on the JQFileUpload caption that displays the filename after it's finished uploading.

Re: SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 08:56
by assapan
Hi,
What have you set in Uploadpath property ?

be aware that you must access rights to ISS folder , please check http://docs.atozed.com/docs.dll/deployment/Deploying%20your%20application%20as%20a%20ISAPI.html

Re: SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 09:33
by tonyzhou
yes, this is bug.

iis deployment not work.

////////////
CG 2.9.0.229 with ASPX

Re: SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 09:38
by tonyzhou
image

Re: SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 09:52
by assapan
Hi
TonyZhou , we don't speak chinese so it's difficult to understand what happens , anyway i have just checked on my server with CG2.9.0.229 and IW14.0.52 everything works as expected for myself.

Was it working before and stop working ?

Re: SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 10:06
by tonyzhou
Hi, assapan

if you use TIWFileUploader (iis) , it work.

Re: SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 10:23
by assapan
No sorry i use JQFileupload , have you tried to debug it ?

Re: SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 11:16
by Alexander Bulei
Hi guys,

Do you include the IWCGHttpApp unit in the project?

viewtopic.php?f=40&t=2097#p10853

Best Regards.

Re: SA -vs- ISAPI : SA=Working ISAIP=Not working

PostPosted: 22 Mar 2016 16:48
by ScottWGast
AHHHHHHH HA!

I thought there was something that I've done before, but totally forgot about.

Thanks for the reminder.

Scott