CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Open file fram local disk in dll app

by Corwin » 16 Nov 2015 15:29

Hi

I have an application XE6 (intraweb with ISAPI -> .dll) on our server.
In a frame I have to open an EXCEL file on the local PC.
The object IW FileOpenDialog obviously does not work (it would open on the server disk).
I have to use the object TIWCGJQFileUpload, copy it to the server and then use this copy?
I need permissions on the directory where the server will copy the file, I guess ... ;)

Regards.
Corwin
 
Posts: 114
Joined: 27 Apr 2015 10:01

by Corwin » 17 Nov 2015 15:54

Creating the application exe, all is okay!

Creating as ISAPI application DLL, the upload button does not save any files on the server; i have stting uploadpath to "c: \ temp" that has write permissions on server.

I added a few lines of the log.
Code: Select all
procedure TIWInventoryFrame.IWCGJQFileUploadJQFileUploadOptionsError(
  Sender: TObject; AParams: TStringList);
  var i:Integer;
begin
for I := 0 to AParams.Count - 1 do
     error('Error  %s', [AParams[i]]);
end;


Here's what I read.
[2015-11-17 15:38:56][Error ] Error IW_LocationHash=
[2015-11-17 15:38:56][Error ] Error IW_TrackID_=12
[2015-11-17 15:38:56][Error ] Error IW_SessionID_=cMxPRK5XFeUqNPHFP0F2AG
[2015-11-17 15:38:56][Error ] Error IW_FormID_=
[2015-11-17 15:38:56][Error ] Error callback=IWCGJQFILEUPLOADFRAME1.DoAjaxRequest
[2015-11-17 15:38:56][Error ] Error ajaxevent=JQFileUploadOptions.OnError
[2015-11-17 15:38:56][Error ] Error ComponentName=IWCGJQFileUpload

Any idea?

Regards.
Corwin
 
Posts: 114
Joined: 27 Apr 2015 10:01

by Corwin » 17 Nov 2015 17:42

In attachment the example...
You do not have the required permissions to view the files attached to this post.
Corwin
 
Posts: 114
Joined: 27 Apr 2015 10:01

by Corwin » 23 Nov 2015 14:17

Nothing has any idea? :(
Corwin
 
Posts: 114
Joined: 27 Apr 2015 10:01

by Alexander Bulei » 23 Nov 2015 15:09

Hi Corwin,

Please do this:

delphi code
IWCGJQFileUpload1.JQFileUploadOptions.OnError.Script:='function(id,fileName,errorReason){ alert(errorReason); }';


And paste here the alert message.

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 Corwin » 23 Nov 2015 15:27

Hi Alexander

the javascript Alert has

[object XMLHttpRequest]

posted!
Corwin
 
Posts: 114
Joined: 27 Apr 2015 10:01

by Alexander Bulei » 23 Nov 2015 15:36

Hi Corwin,

Ok, try this:

errorReason.responseText


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 Corwin » 23 Nov 2015 15:42

in attachment :o
You do not have the required permissions to view the files attached to this post.
Corwin
 
Posts: 114
Joined: 27 Apr 2015 10:01

by assapan » 23 Nov 2015 18:10

Hi Corwin,
If you debug your application you will see a message saying
raise EIWCGJQuery.Create('In order to operate FileUpload in IW14/ISAPI, you have to include unit IWCGHttpApp in your IW project!');

Are you using IW14 ?
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 Corwin » 23 Nov 2015 18:30

Yes
Corwin
 
Posts: 114
Joined: 27 Apr 2015 10:01

Next

Return to JQFileUpload

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.