Axure Tutorial: Simulate File Selection and Uploading with Repeater


File uploading is a feature we often use. But why do we want to make such a prototype? Can't Axure set text field to file type and then realize the feature of file selection and uploading? Isn't it possible to call JavaScript code in Axure to realize the uploading feature?

1. First of all, the file uploading interface of the system cannot be modified freely. The button style may not match the UI style we want. Secondly, the prototype generated by Axure cannot open local files, so there is no good interaction effect.

2. Why not use JavaScript calls? Although Axure can implement JavaScript calls and change the UI of the upload button, it can't open local files and doesn't have a good experience.

Therefore, in order to set the style and interaction at will. We can simulate the high-fidelity file uploading interface.

Features to be Realized

Simulate file selection and uploading with repeater

1. Click the upload button to show the file selection interface.

2. After selecting a file, if the file type is correct, the upload progress bar will be shown. After uploading, the uploaded image will be shown; If the file type is wrong, an error notice is shown

3. Realize the operation of forward, backward and return to the upper level.

4. Realize fuzzy search of files.

How to Realize these Features

1. The interface of file selection and uploading is made through repeater and dynamic panel.

2. Determine whether the file upload succeeds or fails by judging the data in the type column of the repeater.

3. Simulate a file path stack through the repeater to realize the operation of forward, backward and return to the upper level.

4. The fuzzy search function is realized by adding a filter to the repeater

Preview the completed prototype for this tutorial


Central Content Repeater Setup 

file widgets setup

This is the most important part. The repeater widgets contains images, labels and a transparent background box, as shown in the above image.

File repeater data

Data filling of repeater:

Type: Including Folder, Image, Video, etc. there are as many file types as there are icons.

Image: Unique to the image type, used to save uploaded images.

Name: The name of the file should be suffixed except for the Application.

Address: The suffix - needs to be added to distinguish the file level

Folder_or_File_or_Application: Used to distinguish between folders, files and applications. 

Selected:  Used to indicate whether it is selected. The default value is 0 and 1 is selected.

Interactions Setup

Item loaded event of repeater

When repeater item is loaded, judge the type of file, and then set the file to the desired image.

Core interaction:

1. When you click the background box of a folder or file, you need to set it to selected and change the data in the repeater's Selected column.

2. When double clicking the background box of a folder or file, you need to judge the type. If it is a folder, you will enter the next level. If it is a file, you will upload the file. We will make an interface for uploading files later.

The specific interaction will not be repeated here. You can download the file to view or try to make it yourself.

Left Nav Bar 

Left Nav Bar

As shown in the figure below, it is made with image and boxes.

When clicking, filter the content repeater item address== Address of the folder(Applications-, Documents-, Desktop- etc.)

Top Nav Bar

Top Nav Bar

The top navigation bar is also made of pictures and boxes. And set the disabled and enabled styles.

Making of file path stack

So, how to achieve forward, backward and return to the upper level? We can simulate the stack in program design through repeater.

Stack making

If the folder has three levels, The repeater of the stack includes the following columns:

Address: Address of the folder.

Order: Order in stack.

Upper_Address: Address of the upper level folder.

Upper_2_Address: Address of the secondary upper level folder.

Hide this repeater, which is only used for logic processing.

Other widgets of stack

In addition, we need to add several related text fields for stack sequential calculation and data saving. One is named number, the default text is 0, and the other is named Upper_Address, one named Upper 2_ Address. 

Back button interactions
When clicking the left arrow, if the number is not 0, the data of all order columns will be + 1, and the data of oder in the first row will be set as the number of repeater rows (go to last row).

The interaction of the right arrow is similar.

Item loaded of order repeater

When item of the Order repeater(Stack) is loaded, modify the data in the dropdown list of the top navigation bar(Dictionary) to address. And modify the data of Up Address and Up2_Address to save data. And add a filter so that only the address of the last row in the current stack is searched. 

Up arrow interactions
When you click the up arrow, you need to add a row of data to the stack, so as to add the path address of the upper level folder and the path address of the secondary upper level folder saved in the two labels to the stack.

Search box

The setting of search column needs to add a filter to realize fuzzy search. The name column of the content contains the data of the input box.

Dropdown list interactions

The settings of the top dropdown list are similar to those of the left nav bar. You need to add a filter. The filtered content is equal to the content selected from the dropdown list. 

That's the main content of today's tutorial. It needs care and patience when making.

If you have any questions and suggestions, please leave a message.

If you like the article, please share it with others with page link, thanks for your supporting! ❤

Well Joe @AxureBoutique, a technical writer and teacher, focuses on Axure prototype design and product design.

Leave a comment

Please note, comments must be approved before they are published

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.