Jump to content

Оправка файла на сервер UniGUI через idHTTP


QPASHIK

Recommended Posts

Добрый день, подскажите пожалуйста как можно отправить файл (фото) на сервер UniGUI средствами idHTTP из стороннего приложения зная ID сессии клиента.

Сервер UniGUI у меня развернут на IIS, соединение защищенное через SSL. Стороннее приложение написано на Delphi Rio 10.3.3

Link to comment
Share on other sites

POST

https://your.unigui-server.com/youproject/dofileupload?my_data=[some_data]&_S_ID=[your_session_id]

On unigui server 

procedure TUniMainModule.UniGUIMainModuleHandleRequest(ASession: TObject;
  var Handled: Boolean);
var S:TUniGUISession;
begin
if (ASession is TUniGUISession) then
 begin
  S:=TUniGUISession(ASession);

  if (S.ARequest.Document='/dofileupload')  then
   begin
    //save file from poststream
    Handled:=false //???
   end   
end;    

 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...