Universal Email 4 has all the file manipulation functionality previously included in Digital File Pro. This functionality allows you to apply file upload behaviors, file download behaviors, and the ability to delete or rename files from your server. It is now included in the Data Bridge bundle.
This tutorial runs you through using the File Upload and File Download functionality found in Universal Email.
Universal Email's File Upload behavior is the most common of the File Manipulation features found in this extension. Here you can specify upload restrictions, determine where the file is stored, and what file types can be uploaded.
Your PHP page must have a file field to allow the user to browse for a file to be uploaded. Follow these steps to add a form field to your page, or use CSS Form Builder to create a form that contains a file field prior to continuing with this tutorial.
Once you have created a file field on your PHP page, you can apply the Upload behavior.
The File settings window allows you to specify multiple output options for the file that is being uploaded. By default, only one file is saved.
The Image options settings will be available if Web images only was selected in Step 1 of the wizard.
Universal Email 4 includes the ability to add a progress bar that will display while an upload is in progress. For instructions on adding a progress bar to your form, check out the Add a Progress Bar tutorial.
The File Manipulation features include the ability to add secure download features to your site as well. If you are selling digital goods, or want to restrict access to downloading certain files on your web site, this can be very useful.
There are a number of practical uses for this capability, and each varies based on your needs.
The following details the basic steps for applying the download server behavior to a button.
If you want to customize success and error messages, view this tutorial.