Regarding Web App Compiler

I create a web app using web app compiler and run in MATLABwebapp Server.
  • As mentioned in documentation page 'Web apps are designed to run only within a trusted intranet environment, not in the open Internet'. How can i share this webapp to my colleagues within intranet? Kindly provide steps.
  • 'uigetfile' is also not supported. As in my app image is input from user. Kindly provide me some alternative of 'uigetfile' so that i can easily take input image from user.

 Risposta accettata

Kojiro Saito
Kojiro Saito il 27 Mar 2018

2 voti

  • After installation of MATLAB Web App Server and configuration of MATLAB Web App Server are done, you just need to put your CTF file (Web App package) in the application folder of MATLAB Web App Server. You can know the folder by "Open App Folder" in MATLAB Web App Server. Then, just share the URL of Web App to your colleagues. By default, it is http://HOSTNAME:9988 where HOSTNAME is a hostname of your server. Your colleagues can access to your Web App by web browser.
  • Yes, as of R2018a, uigetfile is not supported. Simple work around would be the following.
- Users transfer image file from their PC to the some location of the server by FTP Client, then in your Web App, you can access to the image files.
Hope this help.

6 Commenti

James Ang
James Ang il 19 Giu 2018
hi, I created a web server with this hostname: http://james-t4702:9988/webapps/home/ but my colleagues could not access into it. how can I share it with them?
I think there would be two reasons.
From your colleagues, is hostname "james-t4702" resolved?
ping james-t4702
will return collect IP address from terminal (command prompt) of colleagues machines?
Does Firewall of your machine allow port 9988?
James Ang
James Ang il 2 Lug 2018
yup, the firewall blocked the port. Now it works. Many thanks Kojiro.=)
Kevin Chng
Kevin Chng il 15 Ott 2018
Hi Kojiro Saito,
May i ask you a question here?
Although you can upload and download files from a local system in a deployed web app using uigetfile and uiputfile, you cannot download files while an external application is writing them. Opening a folder selection dialog box on the client using uigetdir is not supported.
I saw the above sentence in MATLAB documentation, i'm not sure what does it mean? Is uigetfile and uiputfile supported now? But when i try to compile an apps with uigetfile, the web app server will not recognize it as web app.
Kevin Chng
Kevin Chng il 15 Ott 2018
Modificato: Kevin Chng il 15 Ott 2018
I have checked it out. It is supported in 2018b. However,uigetfile is not working in google chrome, but it is working for Internet Explorer.
Hi Kojiro Saito
Your statement in below does not work. I am using Matlab 2018b. I can open my Web app in my browser, but It does not work when I share my link. Please help me :)
  • After installation of MATLAB Web App Server and configuration of MATLAB Web App Server are done, you just need to put your CTF file (Web App package) in the application folder of MATLAB Web App Server. You can know the folder by "Open App Folder" in MATLAB Web App Server. Then, just share the URL of Web App to your colleagues. By default, it is http://HOSTNAME:9988 where HOSTNAME is a hostname of your server. Your colleagues can access to your Web App by web browser.

Accedi per commentare.

Più risposte (1)

Udo Schröder
Udo Schröder il 16 Apr 2018

1 voto

Could you please tell me how I can then access the uploaded file? I have the same issue.
Will uigetfile be supported in the future?

Categorie

Scopri di più su MATLAB Web App Server in Centro assistenza e File Exchange

Prodotti

Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by