Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Forms: 3rd-Party File Attachments

Add file upload processing to Forms 3rdparty Integration.

N/A.

  1. Unzip, upload plugin folder to your plugins directory (/wp-content/plugins/)
  2. Make sure Forms 3rdparty Integration is installed and settings have been saved at least once.
  3. Activate plugin
  4. Choose how the files will be attached -- either:
    • as server path
    • as url
    • as base64-encoded bytes
    • as raw contents
  5. Map to the desired file detail, where "[field]" is the corresponding input field name as you would normally map:
    • [field] -- the filename
    • [field]_attach -- the transformed attachment from the previous step
    • [field]_mime -- the file's actual mime-type
    • [field]_size -- the file size

0.4.1

  • fix #2 -- GF validation errors removes filename, fallback to path basename

0.4

  • including $form in _get_files hook
  • consolidating byte handling between 'raw' and 'base64'
  • no longer throws an exception if unable to get file, instead returns an error array
  • fixed for GF 2.0.7.2 temp path issue #1
  • new filter: _get_path used for GF bug

0.3

  • refactored inheritance, 'better' form registration, include ninja forms

0.2

  • added "meta" details
  • breaking change - removed overwrite setting as unnecessary (due to compatible formatting)
  • works with GF and CF7

0.1

IT HAS BEGUN

How do I perform the appropriate transforms in custom hooks

Using F3i_Files_Base::Transform($value, $how) where $how is: * path * url * base64 * raw

This only works for GF or CF7, what about Ninja Forms or some other form plugin?

Message the author about adding it, or: 1. extend F3i_Files_Base and declare a method get_files that returns an array of (input_field => filepath) 2. hook to F3i_Files_Base_register and declare a new instance of your class

(A note about Ninja Forms -- file uploads are a paid addon, and the author doesn't have a copy, so adding it wasn't on the roadmap)

It doesn't work right...

Drop an issue at https://github.com/zaus/forms-3rdparty-files

Share  
Download
Version 0.4.1

Requires WordPress version: 3.0 or higher

Compatible up to: 4.5.6

Last Updated 03 Oct 2016

Date Added: 03 Nov 2015

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

0 stars
0 ratings
556 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0