FileBird
FileBird
FileBird
  • Getting Started
    • System Requirements
    • How to Install
    • License
      • Activate license
      • Move license
      • Local/Staging sites
    • Migrate to FileBird
    • How to Update
      • Manually Update
      • Auto Update
  • Free & Pro
    • Premium License
  • Features
    • Interface
      • Sidebar
      • View file location
      • Folder tree themes
      • Folder color
      • Breadcrumb
      • File count
    • Left Section of the Library
      • Divider Icon
      • File and Folder Sorting
      • Bulk Select Folders
      • Folders Searching
      • Drag and Drop Function
      • Right Click Function
      • How to Upload Folders and Files
      • How to Download Folders and Files
      • Set default startup folder
    • Right Section of the Library
      • Showing Specific File Type
      • Bulk Select Option
      • Search Field
    • Custom Post Types
    • Insert Files into Posts
    • Insert Files into Pages
    • Gutenberg Image Gallery
    • User-Based Folders
    • Sort Files by Size
    • Sort Files by Created Date
  • Settings
    • Import/Export
      • Media Folders
      • Post Types Folders
      • Backup
    • Reset to Default
    • Update Database
    • Uninstall and Delete
  • Addons
    • FileBird Document Library
      • Settings
        • Single type
        • Hierarchical type
      • Shortcode
        • Embed in Elementor
      • Show File Count in Nested Folders
      • Thumbnails
      • Translation
      • Free vs Pro
      • Changelog
    • FileBird Document Library for Members
    • FileBird Cloud
      • Dropbox integration
      • Google Drive integration
      • Google Photos
      • Changelog
  • Integrations
    • WPML
    • Polylang
    • JetEngine
    • Compatibility
      • Flatsome UX Builder
    • Developer zone
      • APIs
      • Functions
      • Filters
  • OTHER LINKS
    • FAQs
    • Known Issues
      • Created folders no longer visible
    • Troubleshooting
    • Support
    • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. Integrations

JetEngine

Auto organize uploaded files from JetEngine Forms into FileBird folder

PreviousPolylangNextCompatibility

Last updated 1 year ago

Was this helpful?

This tutorial helps you get the file upload from the JetEngine plugin into the FileBird folders via JetEngine Form.

  1. Go to JetEngine -> Forms to create a form.

  2. Navigate to Field Settings.

  • In the Type field, please choose Media

  • Name File_upload in the name field or any name that your users can recognize its purpose.

  • You can choose who can see, and upload the files in the User Access setting.

  • Input the maximum allowed files to upload.

  • Choose which type of MIME you allow to upload into the form, and so on...

  1. Use Browser Inspector to get the FileBird's folder ID, which will be used to add the files after the form submitted.

  1. Add the functionality to integrate FileBird with JetEngine Form. You might use WPCode or add it to the theme functions.php

use FileBird\Model\Folder as FolderModel;

add_action('jet-engine/forms/handler/after-send', function($data, $success ){
	$files = $data->form_data['file_upload'];

	if (is_array($files)) {
		foreach ($files as $file) {
			FolderModel::setFoldersForPosts($file['id'], 168);
		}
	} else {
		FolderModel::setFoldersForPosts($file['id'], 168);
	}

}, 10,2);

That's it. Now, you have all the uploaded files in the FileBird Media Folder successfully.

Note: In this function, we get the file upload from the field “file_upload” in $data->form_data[‘file_upload’], the “file_upload” must be the same name with the field we created above, and the FileBird's folder ID is ‘168’.

Create a Form in JetEngine
How to get the FileBird's folder ID
create a upload file form in jetengine