CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

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

by ScottWGast » 22 Mar 2016 01:42

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
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by ScottWGast » 22 Mar 2016 01:58

Getting "Unknown Error" and "Upload falied" on the JQFileUpload caption that displays the filename after it's finished uploading.
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by assapan » 22 Mar 2016 08:56

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
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by tonyzhou » 22 Mar 2016 09:33

yes, this is bug.

iis deployment not work.

////////////
CG 2.9.0.229 with ASPX
tonyzhou
 
Posts: 112
Joined: 28 Jun 2015 13:02

by tonyzhou » 22 Mar 2016 09:38

image
You do not have the required permissions to view the files attached to this post.
tonyzhou
 
Posts: 112
Joined: 28 Jun 2015 13:02

by assapan » 22 Mar 2016 09:52

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 ?
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by tonyzhou » 22 Mar 2016 10:06

Hi, assapan

if you use TIWFileUploader (iis) , it work.
You do not have the required permissions to view the files attached to this post.
tonyzhou
 
Posts: 112
Joined: 28 Jun 2015 13:02

by assapan » 22 Mar 2016 10:23

No sorry i use JQFileupload , have you tried to debug it ?
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 22 Mar 2016 11:16

Hi guys,

Do you include the IWCGHttpApp unit in the project?

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

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by ScottWGast » 22 Mar 2016 16:48

AHHHHHHH HA!

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

Thanks for the reminder.

Scott
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02


Return to JQFileUpload

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.