MATLAB Answers

Uploading file to online server through Matlab code

38 views (last 30 days)
Eric Zhao
Eric Zhao on 17 Jul 2017
Commented: Eric Zhao on 20 Jul 2017
Hi, How to upload a file to an online address through matlab code? For example, I would like to upload f1.pdf to an online address called http://mofdms/sites/GMA/Home/Macro/2017/. Thanks!

  0 Comments

Sign in to comment.

Answers (1)

Harsh
Harsh on 20 Jul 2017
This is possible using FTP. After connecting to an FTP server by calling the MATLAB FTP function , the resulting FTP object can be used with mput to upload files or folders to the FTP server.
As a side note, if you would like to write data to a RESTful web service, you can use webwrite.

  1 Comment

Eric Zhao
Eric Zhao on 20 Jul 2017
Is it possible to upload pdf using webwrite? Also how to specify that options? Thanks!

Sign in to comment.


Translated by