Downloading File

Description

This example shows how to create a button or link for downloading a file. The example creates hidden helper iframe and hidden form. Iframe is the target of the form submit. Return the correct HTTP headers from the server is crucial.

Result

Main Features

  • very simple
  • mix of Ext/Touch and HTML
  • PHP server side code

Use Cases

Use whenever you need to trigger the browser download mechanism by clicking a button or link.

Source Code

If you want to see the example code, login or sign-up. Free membership is available.
  • Author
  • Recent Posts
Follow me:
saki
I'm a well seasoned developer, consultant and educator of web applications based mainly on Sencha libraries, PHP, MySQL and Node.js. Besides (Apple) computers, I love photography and mountain biking.
Follow me:
Latest posts by saki (see all)
  • Ext, Angular, React, and Vue - June 27, 2019
  • The Site Resurgence - February 11, 2018
  • Configuring ViewModel Hierarchy - June 19, 2015