The following provides you with a file upload:
add_filter("gform_column_input_content_21_9_3", "change_column3_content", 10, 6);
function change_column3_content($input, $input_info, $field, $text, $value, $form_id) {
$input_field_name="input_" . $field["id"] . '[]';
$tabindex = GFCommon::get_tabindex();
$new_input="<input type="file" name="" . $input_field_name . '" ' . $tabindex . ' class="YOUR-CSS-CLASSES" />';
return $new_input;
}
But what does ‘repeatable’ mean in this context? Do you want an input for multiple file uploads?
// Edit
For file uploads, your form needs to have method="post" enctype="multipart/form-data"
.
Related Posts:
- Saving images from Gravity Forms repeatable File Upload as post attachments [closed]
- front end post with multiple upload images?
- View content from uploaded file in editor
- How to proxy local WP uploads folder to live site
- programmatically create posts from files in a folder
- Alow users to delete uploaded images inside backend?
- More Fields & Media Upload
- How to allow .bin files upload?
- How to download CSV from sub directory in uploads folder
- Manipulate the files uploaded via Gravity Forms before they are stored
- Using Gravity Forms to upload media into library, then attach to post
- Organizing the Media Library for Cleanup
- How to show all available images in WP’s media library when using the Polylang plugin?
- Saving Media – Which Hook is Fired?
- retrieve custom image sizes from media uploader javascript object
- Is it possible to allow zip files to be uploaded in WordPress?
- WordPress monthly upload directory owner set to root
- Set a maximum upload count for users on a specific user role
- Append button to WordPress Image Details modal
- How to set custom upload directory per user after moving content directory
- Importing WordPress Attachments Into Custom Directories In wp-content/uploads/
- add_image_size creating lots of images (of various sizes)
- This file type is not allowed. Please try another
- File Upload Permissions
- Setting the uploads directory
- WordPress cannot upload data after migration
- Bug when uploading pictures with international characters?
- How to stop unlink images when remove a site or user
- How To install AWS SDK for PHP in wordpress?
- Add fields to the WordPress media uploader
- How to retrieve alt attribute for an attachment (uploaded image)?
- How to remove some media upload icons from post editor?
- How to safely allow user upload on CPTs?
- How to upload unknown file type?
- Upload file without attaching it to a POST
- WooCommerce Images are uploading to the server but not attaching
- Why would media_sideload_image() not work locally?
- The uploaded file exceeds the upload_max_filesize directive in php.ini
- Media upload on WordPress changes title of image
- Gravity Forms Button Text
- remove_accents does not seem to work (when used inside sanitize_file_name filter)
- move_uploaded_file() not working on wordpress front end
- Remove upload file types filter for admin
- When sale price is 0.00 show only regular price
- wrong media url in wordpress
- Protecting uploads not working
- How to upload a file from WP directory automatically?
- How to get the return value of wp.media({ frame: ‘post’ }) in all cases?
- WordPress Uploads Directory not using dates in links
- Hide images from anonymous user?
- cannot upload anything into wordpress
- Limit image upload
- What is the way to add additional fields to attachments in 3.5+?
- Is there any good way to use SVN for uploads directory?
- WordPress Drag n Drop Uploader – Single File Only
- Multi Upload In Theme Options
- Uploading PDF file and providing download links to them
- How to load attachment in media library for current user?
- Why does get_dirsize return the same size?
- How To Watermark Audio
- Maximum post size?
- tb_show not showing a media upload window . custom plugin
- In the media Rest API, what is “missing_image_sizes”?
- Storing WordPress Media Library Uploaded files onto a separate domain
- Images give 404 after changing default domain
- Creating a podcast directory site – how to allow user to upload “large” files?
- Migrating media files (documents only) to a fresh install and maintaining the same directory structure
- Is there a way a user/member can upload a file and link it in his profile page?
- Send an e-mail notification to custom user role when a file is uploaded to uploads folder
- Resize uploaded original images to a minimum automatically
- WordPress Thumbnail compression depends on the server?
- Better solution for managing media attachments with `wp_editor()`?
- Custom Text in Media Uploader in a Theme Options Page
- Do custom post type (CPT) attachments/media store the parent post ID?
- Upload image fails “upload test” on localhost
- Can’t upload format files on media library
- Get uploaded video URL
- The uploaded file exceeds the upload_max_filesize directive in php.ini. showing while uploading a theme
- Using unzip_file() to get contents of file
- Which WordPress file controls the featured image upload maximum width and height of 3000px
- Moving wp-content folder to public_html
- An error occurred in the upload. Please try again later
- media_handle_upload fails with gravity form submitted image
- Uploading a file results in attachment post, but file is missing
- Featured image to grayscale with PHP imagefilter – which hook to use?
- Force relative path in media library for LAN deployment
- WordPress Media manager select file button, how to prevent hiding?
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- Make thumbnail from uploaded image without plugin
- Making Site A Use Site B’s wp-content Folder
- Limit number of uploaded attachments of specific context
- WordPress upload folder on separate server
- increase maximum upload file
- make default upload folder year/month/day wordpress without plugin [duplicate]
- Display Image Upload from Contact Form 7 on Redirect Page [closed]
- Auto shortlink for file uploads
- Obtaining detailed error information from Media file upload process
- How to overwrite image if it already exists – WordPress, Gravity form
- Is it possible to restrict the number of media uploads (photos) per user?
- How to restrict product access to personal user uploads in WordPress