Why the file path get wrong after I packed my app code written by App Designer to a Web App?

4 次查看(过去 30 天)
I am currently using App Designer to create an app. It needs to import an Excel file and the interface will show the file path. This is my code to show the path:
% Button pushed function: ChoosebasinshapefileButton
function ChoosebasinshapefileButtonPushed(app, event)
[shapeName, shapefolder] = uigetfile();
shapeFileName = fullfile(shapefolder, shapeName);
app.EditField_3.Value = shapeFileName;
end
It shows the correct file path when I run the app in App Designer, as shown blow:
But, after I packed my App and run it as a Web App using the MATLAB Compiler, it shows the wrong file path, as shown below (same file as before):
So, does anyone know why this happen? And how should I do to solve it? Any help appreciated. I am using ver R2019a
Thank you very much!
Li

采纳的回答

Cris LaPierre
Cris LaPierre 2019-9-11
Not sure it provides much of a description, but you can read a little about in this answer.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Web App Server 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by