Commit 19b01239 authored by Skirmantas's avatar Skirmantas

commentai

parent 0aecc3a1
...@@ -470,8 +470,11 @@ class Biuro_Contacts_Public { ...@@ -470,8 +470,11 @@ class Biuro_Contacts_Public {
# upload file # upload file
if($_FILES) { if($_FILES) {
# gali nusirody: 'mimes' => array('csv' => 'text/csv')
$movefile = wp_handle_upload( $_FILES['cv'], ['test_form' => false]); $movefile = wp_handle_upload($_FILES['cv'], [
'test_form' => false,
//'unique_filename_callback' => 'custom_file_name'
]);
if ( $movefile && ! isset( $movefile['error'] ) ) { if ( $movefile && ! isset( $movefile['error'] ) ) {
$data['cv'] = static::getValue('cv', $movefile['url']); $data['cv'] = static::getValue('cv', $movefile['url']);
...@@ -488,6 +491,10 @@ class Biuro_Contacts_Public { ...@@ -488,6 +491,10 @@ class Biuro_Contacts_Public {
exit; exit;
} }
#function custom_file_name($dir, $name, $ext){
# return $name.$ext;
# }
public function employers_quick_post() { public function employers_quick_post() {
debug($_POST); //$_POST variables should be accessible now debug($_POST); //$_POST variables should be accessible now
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment