QPASHIK Posted January 28, 2020 Share Posted January 28, 2020 Добрый день, подскажите пожалуйста как можно отправить файл (фото) на сервер UniGUI средствами idHTTP из стороннего приложения зная ID сессии клиента. Сервер UniGUI у меня развернут на IIS, соединение защищенное через SSL. Стороннее приложение написано на Delphi Rio 10.3.3 Quote Link to comment Share on other sites More sharing options...
QPASHIK Posted January 28, 2020 Author Share Posted January 28, 2020 Использую лицензионную версию Complete Professional 1.90.0.1517 Quote Link to comment Share on other sites More sharing options...
stas Posted January 29, 2020 Share Posted January 29, 2020 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; 1 Quote Link to comment Share on other sites More sharing options...
QPASHIK Posted January 29, 2020 Author Share Posted January 29, 2020 Спасибо! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.