Custom Software Services for Forward-Thinking Organizations

View Original

A Simple Guide on how to Upload Multiples Files in Knack! - (View Based)

Hello Folks!

Imagine that you are working on an application for a traveling agency that needs to have several files attached to a single reservation. In this case it can be for one traveler or several ones which will lead to upload information into the database such as travel insurance, passport Id, driver's license, flight and hotel Information among others. 

Since it is important to save time and accomplish tasks in a timely manner, we want to share with you this guide on how you can upload multiple files at once and be more efficient in the work you do.

Just follow these simple steps:

1. Create new Object in Builder with at least one field of type File 

2. Create a new page with the option of requiring login, in the object select the one created in step 1 and for the views that the new page should have, select form option.

3. Once the new page is created, it must be indicated that it is not visible in the application menu, this is done in the settings tab.

4. Create a new page with the options selected below

5. Insert the following code in the API & Code section of the APP (Javascript Tab):

See this content in the original post

6. Insert the following code in the API & Code section of the APP (CSS Tab):

See this content in the original post

7. Implementation demo:

Enter this link and watch how it works: https://soluntech.knack.com/test#multifile-upload/

If you found this helpful, please leave share it with your colleagues!