开发者 |
zaus
dominiceales |
---|---|
更新时间 | 2018年10月10日 12:01 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 4.9.6 |
版权: | GPLv2 or later |
/wp-content/plugins/
)[field]
-- the filename[field]_attach
-- the transformed attachment from the previous step[field]_mime
-- the file's actual mime-type[field]_size
-- the file sizeUsing F3i_Files_Base::Transform($value, $how)
where $how
is:
path
url
base64
raw
Use the 'label' option to instead reference file uploads via the field label. You can also set the Advanced > Admin Field Label to use a shorter/non-display label than what users see on the form.
ex) If your upload field input_5
has a very long label "Choose one or more files blah blah blah" you would reference details like Choose one or more files blah blah blah_attach
unless you set an admin label like "FileUpload", in which case you'd map to FileUpload_attach
. You can also use this to attach to different upload fields across forms -- normally they might not be able to share the input_id, but if you give them the same admin field label then you only need to map the service once to that admin label.
Message the author about adding it, or:
F3i_Files_Base
and declare a method get_files
that returns an array of (input_field => filepath)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)Drop an issue at https://github.com/zaus/forms-3rdparty-files
$form
in _get_files
hook_get_path
used for GF bug