114
HTML5 File Upload DMXzone Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com Page 1 of 114 Table of contents Table of contents ........................................................................................................................................................ 1 About HTML5 File Upload ............................................................................................................................................ 2 Features in Detail ........................................................................................................................................................ 3 The Basics: Upload Files to Your Server..................................................................................................................... 14 Advanced: Add an Image Preview before Upload ....................................................................................................... 30 Advanced: Upload Images and Store their Names into a Database ............................................................................ 37 Advanced: Upload Multiple Files and Store their Names into a Database................................................................... 54 Advanced: Use HTML5 File Upload with Update Record Server Action....................................................................... 85 Advanced: Show a Loader during the Upload........................................................................................................... 107 Video: Upload Files to Your Server ........................................................................................................................... 114 Video: Add an Image Preview before Upload............................................................................................................ 114 Video: Upload Images and Store their Names into a Database................................................................................. 114 Video: Upload Multiple Files and Store their Names into a Database ....................................................................... 114 Video: Use HTML5 File Upload with Update Record Server Action ........................................................................... 114 Video: Show a Loader during the Upload ................................................................................................................. 114

HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

  • Upload
    dinhtu

  • View
    274

  • Download
    1

Embed Size (px)

Citation preview

Page 1: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 1 of 114

Table of contents Table of contents ........................................................................................................................................................ 1 About HTML5 File Upload ............................................................................................................................................ 2 Features in Detail ........................................................................................................................................................ 3 The Basics: Upload Files to Your Server..................................................................................................................... 14 Advanced: Add an Image Preview before Upload ....................................................................................................... 30 Advanced: Upload Images and Store their Names into a Database ............................................................................ 37 Advanced: Upload Multiple Files and Store their Names into a Database................................................................... 54 Advanced: Use HTML5 File Upload with Update Record Server Action....................................................................... 85 Advanced: Show a Loader during the Upload ........................................................................................................... 107 Video: Upload Files to Your Server ........................................................................................................................... 114 Video: Add an Image Preview before Upload ............................................................................................................ 114 Video: Upload Images and Store their Names into a Database................................................................................. 114 Video: Upload Multiple Files and Store their Names into a Database ....................................................................... 114 Video: Use HTML5 File Upload with Update Record Server Action ........................................................................... 114 Video: Show a Loader during the Upload ................................................................................................................. 114

Page 2: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 2 of 114

About HTML5 File Upload

The HTML5 File Upload offers advanced file upload through Ajax, multiple file upload, storing file info and client side image preview. It also allows you to upload single or multiple files.

To make sure you can use the extension in the best way possible, we made it fully compatible with the DMXzone Database Connector PHP/ASP and DMXzone Database Updater PHP/ASP. Thanks to this compatibility you can store your file names, type and size directly in your database.

To top it all off, the HTML5 File Upload now comes with a fantastic integration within the DMXzone Server Connect. And you can even create your own fancy progress bars.

Page 3: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 3 of 114

Features in Detail

Great integration within DMXzone Server Connect - HTML5 File Upload has been integrated within DMXzone Server Connect and its functionality can be easily added from steps.

Page 4: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 4 of 114

Store your file names, type and size dynamically - HTML5 File Upload is fully compatible with DMXzone Database Connector PHP/ASP, which allows you to store your file names, type and size directly in your database.

Page 5: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 5 of 114

Extended Data Bindings - Extended data bindings are available so that you can easily access the properties of the uploaded files and have total freedom to use them any way you intent to. HTML5 File Upload allows you to set the properties of your form fields from HTML5 Data Bindings.

Page 6: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 6 of 114

Multiple file upload - Choose one or multiple files to be uploaded at the same time.

Page 7: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 7 of 114

Client side image preview - Before you submit the uploaded image you have a chance to see a live preview of it.

Page 8: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 8 of 114

File info details - You can choose to display the file size, name or date of creation. It collects all the information of the files that you upload. The extension collects data such as filenames, file sizes and the size of images from the upload class so you can store these values in your database.

Page 9: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 9 of 114

File naming template mask - The following masks are available to choose from: {name} filename without extension, {ext} file extension, {_n} generates a _1 number and counting until the file is unique and {guid} generates a unique GUID.

Page 10: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 10 of 114

File conflict handling – Determine how a file should be handled if its name conflicts with the name of an existing file in the directory.

o Overwrite existing files - If you enable this options, existing files with the same name will be overwritten.

Page 11: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 11 of 114

o Create path option - Using this option, the HTML5 File Upload will create an upload folder if it doesn’t exist on your server.

o Throw errors - Display an error message if there’s a problem with the upload.

Page 12: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 12 of 114

Integrated progress info - You can follow up your upload progress real time. You can even create your own fancy progress bar.

Page 13: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 13 of 114

Before you begin Make sure to setup your site in Dreamweaver first before creating a page. If you don ’t know how to do that please read this.

Installing the extension Read the tutorial at http://www.dmxzone.com/go/4671/how-to-install-extensions-from-dmxzone/ Login, download the product, and look up your serial at http://www.dmxzone.com/user/products Get the latest DMXzone Extension Manager at http://www.dmxzone.com/go/22670/dmxzone-extension-manager-for-dreamweaver Open DMXzone Extension Manager and go to your Purchased products tab and click install. If you have a subscription, the extension is to be found and installed in the Explore tab. Get the latest extension manager from Adobe at http://www.adobe.com/exchange/em_download/ Open the .zxp file if you’re using Dreamweaver CC or the .mxp file for Dreamweaver CS+ with Adobe Extension manager and install the extension. If you experience any problems contact our Live Support!

Page 14: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 14 of 114

The Basics: Upload Files to Your Server In this tutorial we will show you how to upload files to your server, using HTML5 File Upload. *You can also check out the video.

Page 15: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 15 of 114

How to do it 1. First, we need to insert a form, containing a file field and a submit button on our page. From the insert menu

(1) and select form (2).

Page 16: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 16 of 114

2. Now change its default name to: upload form.

Page 17: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 17 of 114

3. Then click inside the form (1) and from the insert menu (2), choose file (3).

Page 18: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 18 of 114

4. Now, as we have our file field inserted, we need to add the submit button. From the insert menu (1) add a submit button (2).

Page 19: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 19 of 114

5. As we’ve already set up our form properly, let’s add the file upload functionality to it. First, create a new server action (1) inside the DMXzone Server Connect panel and add a name for it (2).

Page 20: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 20 of 114

6. Then expand globals (1) and sync your page form fields. Browse to your page (2), select it (3) and click the OK button (4).

Page 21: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 21 of 114

7. Now, select your form from the dropdown (1) and right click steps (2).

Page 22: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 22 of 114

8. Select – add file upload.

Page 23: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 23 of 114

9. First, add a name for your upload step (1) and click the server data bindings picker (2), in order to select your upload field.

Page 24: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 24 of 114

10. Expand the global variables list (1) and under post, select your file field (2). When you’re done, click the select button.

Page 25: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 25 of 114

11. Browse (1) to your upload folder (2) and select it (3).

Page 26: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 26 of 114

12. You can use a naming template mask, for the files, that you upload. If you leave this field empty, the files will be uploaded with their original names. Select whether to overwrite existing files, with the same name or not. Enable the create path option (1) if you want the HTML5 File Upload to create the upload folder, if it doesn’t exist on your server. Also, enable the throw errors option, if you’d like to see error messages, when there is a problem with the upload (2). Save your server action steps (3) when you are done.

Page 27: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 27 of 114

13. Now, open the HTML5 Data Bindings Panel (1), select server action executors (2) and click add new button (3).

Page 28: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 28 of 114

14. Select your server upload action (1), then select your form (2) and add a name for the executor (3). Check the on submit option (4) and click OK (5).

Page 29: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 29 of 114

15. Let’s preview the results.

Page 30: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 30 of 114

Advanced: Add an Image Preview before Upload In this tutorial we will show you how to add an image preview before upload, using HTML5 File Upload. *You can also check out the video.

Page 31: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 31 of 114

How to do it 1. We’ve already created a file upload page, using HTML5 File Upload. And we’d like to have a nice thumbnail

preview, just below the file field, when the users select images for upload. In order to do that, open the HTML5 Data Bindings panel (1), select file properties (2) and click add new button (3).

Page 32: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 32 of 114

2. A dialog asking you if you want to enable the file upload data bindings appears. Click OK

Page 33: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 33 of 114

3. And then expand the file field bindings (1), select data URL binding (2), choose image (3) from the dropdown and click insert (4).

Page 34: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 34 of 114

4. Let’s set a size for this image preview thumbnail. We set 220 pixels for the image width.

Page 35: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 35 of 114

5. We only need this image preview to appear when there is an image selected for upload. And we don’t want to see some empty image placeholder, when there is no image selected so we select the image preview (1) and open the HTML5 Data Bindings panel (2). Сelect - data URL, from the file properties bindings (3), from the bind to menu, choose img.data.show (4) and click bind (5).

Page 36: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 36 of 114

6. And you are done! Now let’s preview the results. You can browse to your image, and select it. As soon as you select the image the image preview appears below the upload field. That’s how easy it is to add an image preview before upload, using HTML5 File Upload.

Page 37: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 37 of 114

Advanced: Upload Images and Store their Names into a Database In this tutorial we will show you how to how to upload images and store their names into a database, using HTML5 File Upload. In order to do that you’ll also need HTML5 Data Bindings, DMXzone Database Updater PHP/ASP and DMXzone Database Connector PHP/ASP extensions. *You can also check out the video.

Page 38: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 38 of 114

How to do it 1. We’ve added a form, containing a file field and a text field. We’d like to store the uploaded file name and the

text from the text field, into our database. We’ve also created a server action that uploads our files to a folder on the server. Check our previous tutorial, called “Upload Files to Your Server” in order to learn how to do this. So, now we need to add an insert record step, after the file upload. Right click the file upload step (1) in the action steps tree and select – add database insert (2).

Page 39: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 39 of 114

2. We first need to setup a database connection, so click yes.

Page 40: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 40 of 114

3. Create your database connection, or select it from the dropdown if you have already created it.

Page 41: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 41 of 114

4. Then right click the database connection step (1) and select add database insert (2).

Page 42: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 42 of 114

5. Add a name (1) for the database insert step, select your connection (2) from the dropdown and click the insert options button (3).

Page 43: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 43 of 114

6. Select your database table (1), choose the table columns, where you want to insert the textfield text and file name into (2) and add them to the columns list (3).

Page 44: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 44 of 114

7. First, select the database column (1) where you want to store the input text and click the server data bindings picker (2) for its value.

Page 45: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 45 of 114

8. Under globals and post choose your textfield (1) and click – select button (2).

Page 46: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 46 of 114

9. Then, select the database column where you want to store the image name (1) and select the server data bindings picker (2) for its value.

Page 47: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 47 of 114

10. In the steps tree you see your file upload step. Select the name binding (1), located under it. This returns the name of the uploaded file. Then click the select button (2).

Page 48: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 48 of 114

11. Click Ok, in order to apply these step properties.

Page 49: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 49 of 114

12. And do not forget to save your server action steps.

Page 50: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 50 of 114

13. Then, open the HTML5 Data Bindings panel (1), select server connect action executors (2) and click add new button (3).

Page 51: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 51 of 114

14. Select your server action (1), bind your form (2) and add a name for this executor (3). Then, check the on submit option (4) and click OK (5).

Page 52: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 52 of 114

15. Let’s preview the results.

Page 53: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 53 of 114

16. Enter a product name and select an image. As soon as you click the Add Product button, the image gets uploaded, and then the server connect runs the insert step, which inserts the data into your database. You can see the results on the right.

Page 54: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 54 of 114

Advanced: Upload Multiple Files and Store their Names into a Database In this tutorial we will show you how to upload multiple files and store their names into a database using HTML5 File Upload. In order to do that you’ll also need HTML5 Data Bindings, DMXzone Database Updater PHP/ASP and DMXzone Database Connector PHP/ASP extensions. *You can also check out the video.

Page 55: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 55 of 114

How to do it 1. First, we need to multi upload. Select your file field (1) and change its default name (2). The new name must

end with two square brackets. Also, enable the multiple checkbox (3).

Page 56: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 56 of 114

2. Create a new server action (1) and add a name for it (2).

Page 57: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 57 of 114

3. Then link your upload page (2) with the global variables (1).

Page 58: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 58 of 114

4. Now, select your form from the dropdown (1) and right click steps (2).

Page 59: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 59 of 114

5. And add file upload.

Page 60: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 60 of 114

6. Add a name for the upload (1) and click the server data bindings icon, in order to select your upload field (2).

Page 61: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 61 of 114

7. Expand the global variables (1) and select your upload field, under post variables (2). Note that the upload field appears as an array, because of the square brackets that we used in its name. When you’re done click the select button (3).

Page 62: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 62 of 114

8. Now, select your upload folder (1) and right click the file upload (2), in order to add the next server action step.

Page 63: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 63 of 114

9. As we will upload multiple files we need to add a repeat.

Page 64: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 64 of 114

10. Add a name for the repeat (1) and click the server data bindings icon, in order to select the repeat expression (2).

Page 65: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 65 of 114

11. Select the file upload step that we’ve just created (1) and click the select button (2).

Page 66: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 66 of 114

12. Right click steps, inside the repeat (1) and add a database connection (2).

Page 67: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 67 of 114

13. Set up your database connection, or just select it from the dropdown, if you’ve already defined it (1). Right click the database connection (2).

Page 68: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 68 of 114

14. And add a database insert.

Page 69: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 69 of 114

15. Add a name for it the insert (1) and select your connection from the dropdown. (2). Now let’s setup the insert options (3).

Page 70: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 70 of 114

16. Select your database table (1), and then add (3) the columns (2) you want to insert the images names and text into.

Page 71: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 71 of 114

17. We have a text field in our form, and we like to store its content into one of our database columns. Click the column (1) and click the server data bindings icon (2), in order to select the text field.

Page 72: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 72 of 114

18. Expand globals (1) and select the text field, under post (2). When you’re done click the select button (3).

Page 73: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 73 of 114

19. Now, select the database column, where you want to store the uploaded images names (1) and click the server data bindings picker, for its value (2).

Page 74: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 74 of 114

20. Then select the name binding under the repeat, that we created (1). This binding returns the uploaded file name. Click the select button (2).

Page 75: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 75 of 114

21. And click the OK button, when you are done.

Page 76: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 76 of 114

22. Make sure to save your action steps.

Page 77: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 77 of 114

23. Open the HTML5 Data Bindings panel (1) and create (3) a new database action executor (2).

Page 78: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 78 of 114

24. Select your server action form (1) and add a name for your executor (2). Enable the on submit option (3) and click OK (4).

Page 79: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 79 of 114

25. We are going to upload only images on this page so let’s add multiple images preview before upload. In the HTML5 Data Bindings panel (1), select file properties (2) and click the add button (3).

Page 80: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 80 of 114

26. Select your file field, listed there (1), select the repeat region (2) and click insert (3).

Page 81: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 81 of 114

27. Click inside the repeat region (1) and select the data URL binding, under the file field (2). Select image (3) from the dropdown and click insert (4).

Page 82: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 82 of 114

28. Then we just change the preview image width. We set it to 64 pixels.

Page 83: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 83 of 114

29. And we are done. Let’s preview the results.

Page 84: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 84 of 114

30. Enter some text in the textfield, then browse to your images and select them. As soon as you click the Add Images button, HTML5 File Upload uploads them to the server and then their names get stored in the database. You can see the results from our database on the right.

Page 85: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 85 of 114

Advanced: Use HTML5 File Upload with Update Record Server Action In this tutorial we will show you how to use HTML5 File Upload with Update Record Server Action. In order to do that you’ll also need HTML5 Data Bindings, DMXzone Database Updater PHP/ASP and DMXzone Database Connector PHP/ASP extensions. *You can also check out the video.

Page 86: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 86 of 114

How to do it 1. We’ve already created an update record server action and a simple form that submits text through a text input.

You can see how to do this in our video tutorial called: Update your database records. Now we want to add a file field in our form, in order to be able to update also the files on our server and their names in our database. Click inside the form (1) on the page and add a file field (2).

Page 87: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 87 of 114

2. Let’s change the default file field name to userImage.

Page 88: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 88 of 114

3. Save your page, select globals (1) and then click the synchronize button (2).

Page 89: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 89 of 114

4. Now, the new file field is also inside the global variables list. Right click the database connection step (1) and add file upload (2).

Page 90: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 90 of 114

5. Add a name for it (1) and select your file upload field (2).

Page 91: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 91 of 114

6. Expand the global variables (1) and select the file field (2). When you’re done, click the select button (3).

Page 92: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 92 of 114

7. Set your upload path (1) and right click the file upload action step (2).

Page 93: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 93 of 114

8. Add a condition. We need to add a condition that checks if the file field is empty, when we are updating the record. If it is empty - we do not want to insert empty value for the file name in the database but we just want to keep the existing one.

Page 94: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 94 of 114

9. Click the server data bindings picker (1), in order to setup the condition. Select the error binding (2), located under the file upload step. With this expression we can check if the file field is empty when submitting the form. We just need to look if there is an error with number 4 returned. So we just add equals 4 in the expression field (3). If the server returns an error and if it equals 4, then the file field was submitted empty. When you’re done, click the select button (4).

Page 95: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 95 of 114

10. If this condition is true or if the file field was submitted empty we do not want to send its value to the database. So then we just need to run the standard update record step. This is the step that we ’ve created previously, and it only inserts the text fields values into the database. Grab this step (1) and drag it in the steps list, under the then statement (2).

Page 96: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 96 of 114

11. Now, right click the steps (1) under the else statement and add a database update (2).

Page 97: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 97 of 114

12. This update record step will be run, when there is a file in the file field. So we will update the file name into the database. Add a name for it (1) and choose your connection from the dropdown (2). Finally, setup the update record options (3).

Page 98: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 98 of 114

13. Select your database table (1), the columns (2) that you want to update and add (3) them to the columns list.

Page 99: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 99 of 114

14. Select the column, where the text field content will be saved (1) and set its value (2).

Page 100: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 100 of 114

15. Select your text field, under the post variables list (1) and click the select button (2).

Page 101: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 101 of 114

16. Now click the database table column (1) that stores the uploaded files names and set value to it (2).

Page 102: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 102 of 114

17. Select the name binding, under file upload (1) and click the select button (2).

Page 103: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 103 of 114

18. In the filters tab (1), add the ID column (2) and assign the form hidden field value to it - as explained in the update record tutorial. Click the OK button when you’re done.

Page 104: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 104 of 114

19. Don’t forget to save your server action steps.

Page 105: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 105 of 114

20. Our server action executor does not need any changes, so let’s just preview the results.

Page 106: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 106 of 114

21. Select a record to update. If you do not select an image, then only the text field value will be updated. Then, select another record to update. Select a new image and enter something in the text field. You see that both get updated, when you hit the update record button.

Page 107: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 107 of 114

Advanced: Show a Loader during the Upload In this tutorial we will show you how to display a loader or a message, during the file upload, using HTML5 File Upload. *You can also check out the video.

Page 108: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 108 of 114

How to do it 1. We created a file upload page. We also created a file upload server action and server action executor, using

DMXzone Server Connect. We also added a div container with animated background, which contains an uploading message. We want to show this div only during the file upload. Select the container (1) that you want to show, during the upload. And expand the server action executor (2) in the HTML5 Data Bindings tree.

Page 109: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 109 of 114

2. Select the uploading binding (1), select div.data.show (2) and click the bind button (3).

Page 110: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 110 of 114

3. And you are done. Let’s preview the results!

Page 111: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 111 of 114

4. Now, as we have our file field inserted, we need to add the submit button. From the insert menu (1) add a submit button (2).

Page 112: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 112 of 114

5. As we’ve already set up our form properly, let’s add the file upload functionality to it. First, create a new server action (1) inside the DMXzone Server Connect panel and add a name for it (2).

Page 113: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 113 of 114

6. Then expand globals (1) and sync your page form fields. Browse to your page (2), select it (3) and click the OK button (4).

Page 114: HTML5 File Upload - DMXzone.COM · About HTML5 File Upload ... you to set the properties of your form fields from HTML5 Data ... Read the tutorial at

HTML5 File Upload DMXzone

Copyright © 2015 DMXzone.com All Rights Reserved To get more go to DMXzone.com

Page 114 of 114

Video: Upload Files to Your Server With this movie we will show you how to upload files to your server, using HTML5 File Upload.

Video: Add an Image Preview before Upload With this movie we will show you how to add an image preview before upload, using HTML5 File Upload.

Video: Upload Images and Store their Names into a Database

With this movie we will show you how to upload images and store their names into a database, using HTML5 File Upload. In order to do that you’ll also need HTML5 Data Bindings, DMXzone Database Updater PHP/ASP and DMXzone Database Connector PHP/ASP extensions.

Video: Upload Multiple Files and Store their Names into a Database With this movie we will show you how to upload multiple files and store their names into a database using HTML5 File Upload. In order to do that you’ll also need HTML5 Data Bindings, DMXzone Database Updater PHP/ASP and DMXzone Database Connector PHP/ASP extensions.

Video: Use HTML5 File Upload with Update Record Server Action With this movie we will show you how to use HTML5 File Upload with Update Record Server Action. In order to do that you’ll also need HTML5 Data Bindings, DMXzone Database Updater PHP/ASP and DMXzone Database Connector PHP/ASP extensions.

Video: Show a Loader during the Upload With this movie we will show you how to display a loader or a message, during the file upload, using HTML5 File Upload.