Title: File Upload Problem
Last modified: August 30, 2016

---

# File Upload Problem

 *  [NikHardwarePal](https://wordpress.org/support/users/nikhardwarepal/)
 * (@nikhardwarepal)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/file-upload-problem-6/)
 * I seem to have a problem when adding the File upload field. Even though I set
   it to not be required it constantly says “This field can’t be Empty”.
 * The other options work but this sadly doesn’t.
 * Can you help ?
 * [https://wordpress.org/plugins/wc-fields-factory/](https://wordpress.org/plugins/wc-fields-factory/)

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

 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/file-upload-problem-6/#post-6777563)
 * Hi, You should provide values for `Allowed File Types` option. eg. pdf,docx,jpg,
   png like that.
 *  Thread Starter [NikHardwarePal](https://wordpress.org/support/users/nikhardwarepal/)
 * (@nikhardwarepal)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/file-upload-problem-6/#post-6777568)
 * I have provided those
 * Here is the image for the settings I use
 * > [View post on imgur.com](https://imgur.com/fkBOZ2I)
 * and here is the product link
 * [http://lenshour.com/product/carrera-ca6637-frame/](http://lenshour.com/product/carrera-ca6637-frame/)
 * You can see that it causes an error
 * None of the fields are required
 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/file-upload-problem-6/#post-6777572)
 * That’s strange, but I am not able replicate that issue with my installation.
 * Is there any chance for you to view `error_log` .?
 *  Thread Starter [NikHardwarePal](https://wordpress.org/support/users/nikhardwarepal/)
 * (@nikhardwarepal)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/file-upload-problem-6/#post-6777578)
 * Yes I have the errors logs is it ok to post here or should I send it to you ?
 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/file-upload-problem-6/#post-6777580)
 * Hi, for now use this filter to by pass file validation.
 *     ```
       add_filter( 'wccpf/upload/validate', 'override_file_validation', 99, 3 );
       function override_file_validation( $uploadedfile, $file_types, $mandatory ) {
       	return true;
       }
       ```
   
 *  Thread Starter [NikHardwarePal](https://wordpress.org/support/users/nikhardwarepal/)
 * (@nikhardwarepal)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/file-upload-problem-6/#post-6777589)
 * I tried this but it seems that I do not get the file.
 * This is the error log:
 * “edited:
 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/file-upload-problem-6/#post-6777591)
 * Hi, it doesn’t look like plugin issue.
 * Are you using managed hosting ( cpanel ).? or un managed ( VPS cloud ).?
    error
   log contains lot Out Of Memory exceptions. does your server has enough memory.?
 * 1. Try to allocate more memory for PHP. ( can be configured with php.ini )
    2.
   Check whether you have proper file permission for your upload directory.

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

The topic ‘File Upload Problem’ is closed to new replies.

 * ![](https://ps.w.org/wc-fields-factory/assets/icon-128x128.jpg?rev=2738843)
 * [WC Fields Factory](https://wordpress.org/plugins/wc-fields-factory/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-fields-factory/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-fields-factory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-fields-factory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-fields-factory/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/file-upload-problem-6/#post-6777591)
 * Status: not resolved