FIle transfer problem/explanation

Get help with installation and setup problems
Post Reply
don888
Posts: 2
Joined: Fri Feb 16, 2018 10:11 am

FIle transfer problem/explanation

Post by don888 » Fri Feb 16, 2018 10:18 am

Hi all,

We are trying demo trial version and we are mostly likely to buy license as it has almost have everything we need for our business.

The one thing that is a problem is file transfer.
We noticed when opening File transfer -> opening "From PC to Server" it opens a link and it looks like this:
http://IP-ADDRESS/socket.io/uploadb?pat ... ser_&no=no

We are trying to embed this file transfer to our application but we are not sure how to implement this as we don't how unique ID (in case above is 7HNDIU1I9IYWH9) is created?

Could you please explain?

Thank you in advance.

Regards,
Antonio

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: FIle transfer problem/explanation

Post by juwagn » Fri Feb 16, 2018 1:16 pm

Hello,

could you explain, what does it mean "to embed this file transfer to our application"? Do you run this application inside rdp session? However i assume not since it would not make any sense to upload to same server from where you call that upload page, so I assume it means reuse file upload without running html5 session from outside?

The transfer is bound to session ID which is generated randomly, so for successful upload you have to know that ID, guessing it is senseless, and the html5 session with such ID has to be alive. So even when knowing the ID of already existing user that reused that ID in the past and is not anymore reusing session(logged off, disconnected, etc.) or changed his ID then upload would be undoable. So reusing it for any upload of any files to any directory is technically undoable with that kind of upload. The next problem, by such tries to upload the files they will always reside inside //tsclient/WebFIle and would not fire event about succeed file upload, so automatic copy from //tsclient/WebFile to directory of your choice would be not possible since when opened this link inside separate window or program you would not have connection to the windows parent.

Sincerely yours, JW.
TSplus HTML5 and Java web engineer

don888
Posts: 2
Joined: Fri Feb 16, 2018 10:11 am

Re: FIle transfer problem/explanation

Post by don888 » Mon Feb 19, 2018 7:24 am

Hi JW,

Thank you very much for your detail information.
We avoid RDP and use Html5.

Here is a better explanation what we need.

We use are own application (called "Test") that is localized on server.
Application needs to be able to upload files from local PC.

What we actually need is when we press upload button (marked on picture below) we should browse local PC (not server PC).
If above not possible, could we at least with that button open file transfer?

Picture: https://ibb.co/bWyn37

We have a programmer that could tell button what to do (Clarion programmer), but here is where we need your help.
Upload files is critical for us, as our application must name that file the way we need it. That's why it's crucial that our users can only choose file and upload it. After uploading it our application will name it accordingly...

Is something like that possible?

Thank you in advance.

Regards,
Antonio

juwagn
Site Admin
Posts: 239
Joined: Wed Oct 15, 2014 8:25 pm

Re: FIle transfer problem/explanation

Post by juwagn » Tue Feb 20, 2018 10:31 pm

Hello,
we should browse local PC (not server PC).
If above not possible, could we at least with that button open file transfer?
That is evidently technically impossible (at least if i do not take into account zero-day vulnerabilities of browsers), you can't browse files in browsers environment within browsers sandbox, or have any vice versa file structure communication from rdp inner session to outside of browser.
Remember here always, what you see, is just simulated picture inside real html page that runs inside browsers sand-box and is catched in the limitations of surrounding browser. You would need native client to get wished result.

More over any browsers popup or file transfer popup is privileged action and you would fail 50/50 if browser has usually active popup blocker, let's assume you clicked button inside rdp session and then send such call to browser, if this event arrives under ~950ms then it will be executed most highly as privileged, at least on modern browser(also modern browser and timing under <950ms), but else it will be dropped by browser.
Moreover even for this 950ms timeout you would need to register setTimeout(function() { }, 950) on each mouse click only in order to predict that somewhen you could click on your button inside rdp session.

So better to not reinvent such broken wheels but use the button for upload from menu so you can go sure that such action will be executed as privileged, and more easiely it is just to drop files to browser for uploading.
TSplus HTML5 and Java web engineer

Post Reply