フィルターのクリア

Upload/Download a file in a Matlab Web App

15 ビュー (過去 30 日間)
Christian Idzik
Christian Idzik 2020 年 8 月 26 日
コメント済み: Christian Idzik 2020 年 8 月 31 日
Hi everyone,
I have built a GUI with App Designer and complied it to a ctf file. One feature of the GUI is to select, read txt and create a txt file. Here an error occurs.
First clicking the right button, the web app opens a nice window where you can either drop the file or select it. The file is locally on the user's PC.
But after selecting the file, it shows the following error message:
Error occurred during upload/download for: example.txt
No permissions
Error using matlab.ui.control.internal.model.mixin.MultilineTextComponent/set.Text (line 49)
The Matlab Web App Server runs on linux machine and I gave all users write/read permissions to the folder (/local/MathWorks/webapps/R2020a/) containing the app.
But somehow that didn't change anything.
What do I have to do so that the App has the permission to upload/download files?
Thanks in advance
Christian
  6 件のコメント
J. Alex Lee
J. Alex Lee 2020 年 8 月 28 日
yea, sorry i was no help...i've had some luck in the past trying to diagnose web server working path by outputting various paths when i encountered local write permission issues...but never encountered a problem with the result of uigetfile() itself (on a windows web server though).
My main learning was that the runtime directory is not the directory where the ctf file resides (whereas I believe for stand-alone executables, the working directory is wherever the .exe lives), and so trying to work with relative paths with deployed code is generally confusing.
is it possible the web app is using a system temporary directory like /tmp, that for some reason you have set to r-- or something?
Christian Idzik
Christian Idzik 2020 年 8 月 31 日
no problem. ;)
The Matlab Web App Server runs on a linux server(opensuse)
that is a good idea, the question is where the system temorary directory is, I will do some try and error.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeWeb Apps についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by