Title: Problem with Upload Custom Field
Last modified: February 24, 2017

---

# Problem with Upload Custom Field

 *  Resolved [Jose Goncalves](https://wordpress.org/support/users/zehatm/)
 * (@zehatm)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/)
 * Hello There
 * I am having problem with upload custom field.
    After I submit ticket, the file
   from this custom field is not sent.
 * Has anyone had the same problem?
 * Please help me solve this issue.
    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/#post-8845262)
 * There’s a potential bug in that custom field type – we’re looking into it and
   if we can identify it will get it fixed in the next version.
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/#post-8925167)
 * Hi:
 * The beta for the next version with the fix for custom upload fields is here: 
   [https://getawesomesupport.com/betafiles/beta-files-3-6/](https://getawesomesupport.com/betafiles/beta-files-3-6/)
 * Please give it a whirl and let me know if the files are being uploaded. They 
   should appear just under the opening post for the ticket (where the regular ticket
   attached files appear).
 *  Thread Starter [Jose Goncalves](https://wordpress.org/support/users/zehatm/)
 * (@zehatm)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/#post-8927578)
 * Hello there,
 * Thanks for the feedback and for trying solve the problem. I truly appreciate 
   it.
 * I downloaded the beta version and replaced in my wordpress installation to test,
   but the file has not been uploaded yet in administrative area where the regular
   ticket attached files appear, as you indicated. Please let me know if you have
   another solution.
 * Taking advantage of another topic, I found a issue in the form’s checkbox custom
   fields and would like to request a review. Is it possible that the checkbox fields
   also have a title field like the radiobox fields?
 * I usually solve this problem by changing to line 30 on file
    “includes/custom-
   fields/field-types/class-cf-checkbox.php”
 * From:
    $ Output = ”;
 * For:
    $ Output = ‘<label class = “wpas-label-radio”> {{label}} </ label>’;
 * Thanks
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/#post-8927731)
 * Hi:
 * Can you provide the code that you’re using to create your custom field?
 * Regarding the checkbox fields title, that should be fixed in the version you 
   just downloaded.
 * Thanks.
 *  Thread Starter [Jose Goncalves](https://wordpress.org/support/users/zehatm/)
 * (@zehatm)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/#post-8927842)
 * Hi,
 * Sure! Here is the code I’m using to generate the upload custom field:
 *     ```
       if ( ! defined( 'WPINC' ) ) {
       	die;
       }
   
       add_action( 'plugins_loaded', 'wpas_user_custom_fields' );
   
       function wpas_user_custom_fields() {
       	$imagem_do_registro_args = array(
       		'title'			=> 'Imagem do Registro',
       		'field_type' 		=> 'upload',
       		'capability' 		=> 'edit_ticket',
       		'multiple'		=> false,
       		'label'      		=> 'Insira aqui a imagem do protocolo',
       		'log' 			=> true
       	);
       	wpas_add_custom_field( 'imagem_do_registro', $imagem_do_registro_args );
       }
       ```
   
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/#post-8936753)
 * Hi:
 * Can you try something like this instead?
 *     ```
       add_action( 'wpas_submission_form_inside_after_subject', 'my_upload_field_frontend', 1 );
       function my_upload_field_frontend( ) {
       $imagem_do_registro_args = array(
       'title' => 'Imagem do Registro',
       'field_type' => 'upload',
       'capability' => 'edit_ticket',
       'multiple' => false,
       'label' => 'Insira aqui a imagem do protocolo',
       'log' => true
       );
       wpas_add_custom_field( 'imagem_do_registro', $imagem_do_registro_args );
       }
       ```
   
 *  Thread Starter [Jose Goncalves](https://wordpress.org/support/users/zehatm/)
 * (@zehatm)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/#post-8936841)
 * Hi,
 * I tried so, but unfortunately it still not work. The file does not appear in 
   the ticket management area.
 * But now at least when the file is required the form can be completed. Which was
   not possible before.
 * Thanks
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/#post-8937059)
 * Hi:
 * Are you using the latest beta version? Can you try it with just AwesomeSupport
   enabled on your site and all other plugins and themes disabled? The code I posted
   was tested on our site and it definitely works – the uploaded file shows up under
   the opening ticket post (it does not show up in the custom fields metabox but
   under the opening post).
 * Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Problem with Upload Custom Field’ is closed to new replies.

 * ![](https://ps.w.org/awesome-support/assets/icon-256x256.png?rev=1849681)
 * [Awesome Support - WordPress HelpDesk & Support Plugin](https://wordpress.org/plugins/awesome-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-support/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-support/reviews/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [submission](https://wordpress.org/support/topic-tag/submission/)
 * [submit ticket](https://wordpress.org/support/topic-tag/submit-ticket/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)

 * 8 replies
 * 2 participants
 * Last reply from: [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/problem-with-upload-custom-field/#post-8937059)
 * Status: resolved