Javascript required
Skip to content Skip to sidebar Skip to footer

How Do I Create an Upload File Form on Wix

Wix is a powerful and like shooting fish in a barrel-to-use tool to build websites for whatsoever purpose, from eCommerce to private blogging. Y'all probably already know that since you're here. What you may be unaware of, all the same, is that with Uploadcare File Uploader, your users will be able to upload images and other media via uploading forms—in just a few clicks.

Wix does accept file uploading functionality, but Uploadcare File Uploader volition increase it by literally tenfold. It volition allow y'all to upload multiple files and automatically optimize them to get the fastest folio load times possible, dynamically adjust them to fit users' devices, and make information technology possible to significantly economize on your storage space. You will also exist able to edit images directly in the browser. Uploadcare File Uploader is very intuitive and like shooting fish in a barrel to install and utilize.

This article will guide you through the process of integrating Uploadcare File Uploader with Wix. In only v minutes, and with just a few lines of HTML code, you lot can embed a file uploader interface into your Wix website.

Okay, now nosotros're ready to begin, so permit's get our easily muddied (just a footling).

Pace 1. Create an business relationship with Uploadcare

Since you're here, chances are you already have a Wix account—just if non, it takes about 1 infinitesimal to sign up and begin building your new website. You lot will too need an business relationship with Uploadcare: simply create one by signing up on the website. One time yous're washed, navigate to your dashboard: here, you tin can create a new project or have a expect at the Public and Secret API Keys for an existing i.

Uploadcare API keys screen
Uploadcare API keys screen

Footstep ii. Create an HTML Block

Now that you take an Uploadcare account, you're set to go. Go to your Wix account and create a new site by hitting the +Create New Site push:

My Sites screen in Wix
My Sites screen in Wix

Wix will then enquire yous what kind of website y'all want to create—e.g., business organisation, online shop, music, portfolio and CV, blog, etc.—and and so offer y'all a option between creating a website with Wix Editor, or using Artificial Design Intelligence (ADI). ADI is an AI-based algorithm that will create a website for yous on the basis of your answers to a few questions about what kind of site y'all want to build. In one case information technology'due south done, you'll have basically the same editing options as with Wix Editor, and so for this commodity, we will stick to the latter.

Wix website editor or ADI selection
Wix website editor or ADI selection

After hitting Choose a Template, you'll see a long listing of unlike website templates. For example, let's pick one of the Conferences & Meetups templates. Choose a template and striking the Edit button. Wix will then show you a very curt (less than 2 minutes) video tutorial.

Website template selection in Wix
Website template selection in Wix

Hither's what the Wix Editor looks like. In the eye of the screen, you run into your website's chief folio. In that location'southward a toolbar on the correct side, which you tin employ to modify and rearrange the visual elements of the page, as well every bit the text. The toolbar on the left side allows you to manage the menus and pages of your website, change the background, and add new elements, apps, and media, every bit well every bit a weblog and a shop. At that place are besides preview options for mobile and desktop. Get ahead and spend a couple of minutes exploring the different editing options.

Wix Website Editor default screen
Wix Website Editor default screen

We will exist primarily interested in the left toolbar. To integrate Uploadcare, hitting the Add together button with the plus sign on the left. This will open up a long bluish bar with a list of options; here, you demand to choose the Embed option. Y'all will then run across the listing of custom embeds: cull HTML iframe and embed it by dragging and dropping it on your webpage.

Adding new elements in Wix Website Editor that will help Wix file upload
Adding new elements in Wix Website Editor that volition help Wix file upload

Let's put the HTML iframe below the text "Submit your awarding here" to permit users to upload their files. Simply drag the frame and drop it in a practiced spot. Make sure the block width is at to the lowest degree 760px to ensure that File Uploader will display correctly.

Adding HTML iframe in Wix Website Editor
Adding HTML iframe in Wix Website Editor

Step iii. Add the Uploadcare File Uploader

Select the block y'all've only placed and click the Enter Code button. A settings box will appear, providing y'all with two options: you can either add together a website address or HTML code. Annotation that the box volition only accept HTTPS. To add Uploadcare File Uploader, put in the following lawmaking snippet:

                                                            <script                >                                                              UPLOADCARE_PUBLIC_KEY                  =                  'YOUR_PUBLIC_KEY'                                                                              </script                >                                                              <script                src                                  =                  "https://ucarecdn.com/libs/widget/3.x/uploadcare.full.min.js"                                data-integration                                  =                  "Wix"                                >                                                                            </script                >                                                              <fieldset                >                                                              <fable                >              Submit Your Question                                  </legend                >                                                              <form                >                                                              <p                >                                                              <characterization                for                                  =                  "email"                                >              Electronic mail                                  </label                >                                                              <input                type                                  =                  "email"                                id                                  =                  "email"                                proper noun                                  =                  "e-mail"                                />                                                              </p                >                                                              <p                >                                                              <label                for                                  =                  "question"                                >              Your question                                  </label                >                                                              <textarea                id                                  =                  "question"                                name                                  =                  "question"                                >                                                              </textarea                >                                                              </p                >                                                              <p                >                                                              <label                for                                  =                  "images"                                >              Your files                                  </characterization                >                                                              <input                type                                  =                  "hidden"                                id                                  =                  "files"                                name                                  =                  "files"                                role                                  =                  "uploadcare-uploader"                                information-clearable                data-images-merely                data-ingather                                  =                  "gratis,2:iii,4:3,xvi:9"                                />                                                              </p                >                                                              <p                >                                                              <button                type                                  =                  "submit"                                >              Submit                                  </push                >                                                              </p                >                                                              </course                >                                                              </fieldset                >                                    

Don't forget to replace YOUR_PUBLIC_KEY with your Public API Key which you got afterwards signing up for Uploadcare. You can as well alter the labels by changing <label>, <legend>, <textarea id>, <button type> and other attributes. The information-images-just option is in the file uploader config to provide a fail-safe experience when working with accounts on the Free programme with no billing info added: those only permit image uploads. Learn more than on how to use HTML code in Wix Editor by checking out the documentation.

Put the lawmaking into the text field of the HTML Settings window:

Entering HTML code to integrate Uploadcare File Uploader to Wix and allow users to upload files
Entering HTML code to integrate Uploadcare File Uploader to Wix and allow users to upload files

Now, if you hit Employ, you'll encounter the uploader embedded into your webpage. You lot tin can alter the background color, fonts, and their sizes, and employ other formatting tools to the Uploader. Most importantly, the visitors of your Wix site will now be able to upload files, and you only needed a few lines of HTML code.

Uploadcare File Uploader in Wix preview
Uploadcare File Uploader in Wix preview

You can rearrange the gild of blocks in the Wix editor past moving them a layer upward or down. Ensure your form is in the topmost layer (Ctrl + Shift + → will do that), so no other elements are blocking the view when the dialog is activated.

Notation that Wix puts external HTML in an <iframe> chemical element, which is not guaranteed to be responsive across devices. Test the form to make certain information technology displays properly on your users' most popular devices. Wix likewise provides all-encompassing documentation on how to use iframes to display visual content on your website.

Conclusion

And, voila! Now y'all have a Wix website with Uploadcare File Uploader embedded into it. Your website users can hands upload files to Wix, and the files will exist automatically optimized to provide the all-time page load speed, fit whatsoever screen, and take up as little infinite as possible.

If you take any questions, experience complimentary to post them in our community surface area or in the comments below.

gotchvailes.blogspot.com

Source: https://uploadcare.com/blog/how-to-upload-files-to-wix-with-uploadcare-a-step-by-step-guide/