- This topic has 4 replies, 2 voices, and was last updated 2 weeks, 1 day ago by .
I have a file field within a group within a tab with a custom upload directory. The file uploads to the custom directory correctly.
array( 'id' => 'file_link', 'type' => 'file', 'name' => esc_html__( 'Upload a File' ), 'tooltip' => esc_html__( 'Select a file from your computer to upload and save as a material for this lesson' ), 'force_delete' => true, 'max_file_uploads' => 1, 'upload_dir' => $upload_dir['basedir'] . '/lms-materials/', 'visible' => array( 'type', '=', 'document' ) ),
- You must be logged in to reply to this topic.