Do you want to send a user submitted files to your Amazon S3 account? With WPForms, you can allow users to submit files through your WordPress forms, and automatically send it to your Amazon S3 account. Let’s take a look at the how to create a WordPress S3 upload form.
Before we begin, keep in mind that this tutorial helps you to store a copy of your files in S3. It doesn’t move or offload your files to S3, so you can find your original file on your WordPress site.
Install WPForms and the Zapier Addon
After the installation, you’ll need to create a form. You can see our tutorial on creating a file upload form in WordPress, or watch this video for instructions:
Depending on your needs, you may edit other form fields with our drag and drop builder. In this example, we’ll be naming our form as Amazon S3.
In order to copy the files to Amazon S3 that your users submit through your form, you’ll need to install and activate the Zapier addon on your site.
The Zapier addon lets you connect your WordPress forms to over 500+ web apps, including Amazon S3.
For more help with this step, you can check out our tutorial on how to install and use the Zapier addon.
Now let’s take a look at how to connect WordPress forms to your Amazon S3 account.
Log into your Zapier account and click the Make a Zap button in the top navigation.
Then, follow Zapier’s step by step guide to create a Zap. To see screenshots of every step, you can refer to our tutorial on using Zapier with WPForms.
Make sure to choose the Amazon S3 form you just created, in the Edit Options step. You must have at least one test entry on your form before fetching existing entries.
You should then see a successful confirmation message.
Connecting Your WordPress Forms to Amazon S3
Now that you’ve connected Zapier to the WPForms plugin, it’s the time to connect WPForms to Amazon S3.
The first step is to choose Amazon S3 as the action app. Use the search bar to find Amazon S3 app.
Then, you’ll be asked to select Amazon S3 action. As we’re looking to upload a file to S3, let’s choose Upload File and click Continue.
Now you need to connect your Amazon S3 account to Zapier. To do this, you’ll need to authorize Zapier to access your Amazon S3 data.
To get your access keys, log in to your Amazon S3 account, click My Security Credentials under your profile name.
In the Security Credentials page, click Create New Access Key.
Find your Access Key ID and Secret Access Key in the popup that appears. Copy them into your Zapier account and click Yes, Continue.
After authorizing the account, click Save + Continue.
In the next step, you’ll be asked to set up Amazon S3 upload file.
In the Key field, you may select a field that lets you identify the user who submits the form. This can be name or email address. In the File field in Zapier, choose the file upload field you created in your form.
Then, click Continue.
Now you can test your Amazon S3 integration. If everything works fine, you’ll see a success message.
You’re all set!
You can now automatically copy the files your users submitted to your Amazon S3 account.
If you liked this article, you might also enjoy our article on creating multiple file uploads form.
What are you waiting for? Get started with the most powerful WordPress forms plugin today.