File downloader/uploader with progress monitor

Download/upload a file from/to the web with progress display using MATLAB's http web services.
Updated 25 Feb 2024

View License

If you find these functions useful please add a review, or, if you have ideas for more options or features, leave a comment in the discussion!
Use downloadFile to download a file from the web and display the progress of the download.
downloadFile(saveFilePath, webFileSourceUrl)
Use uploadFile to upload a file to the web and display the progress of the upload.
uploadFile(localFilePath, webFileTargetUrl)
The progress can be shown in a waitbar, or in MATLAB's command window. The update interval can also be configured.
Optional parameters:
The following options are available to customize the progress display (Options are provided as optional name-value pairs in the function calls):
  • DisplayMode : Where to display progress. Options: 'Dialog Box' (default) or 'Command Window'
  • UpdateInterval : Interval (in seconds) for updating progress. Default = 1 second.
  • ShowFilename : Whether to show name of uploaded file. Default = false.
  • IndentSize : Size of indentation if displaying progress in command window.

Cite As

Eivind Hennestad (2024). File downloader/uploader with progress monitor (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Upate description

Fix formatting issue with description

Updated description


Modified progress monitor to support uploads and added uploadFile function


Updated to show elapsed time of download after download completes.


Changed name to downloadFile
Added some options for display (Show filename, indent message)
Improved display messages


Updated image


Fix: Don't show output of urlencode in command window


Added input argument validation