Thursday 15 January 2015

jquery - UploadfileHandler.php blue imp file upload i want to set paths with variables and it seem to not work at all -



jquery - UploadfileHandler.php blue imp file upload i want to set paths with variables and it seem to not work at all -

i want connect database , alter path ways variable set name.

mysql_connect.php works other home page of websites, holds variable: $path_way within , wont work path on uploadfilehandler.php.

i done lot of research on web cant seem find clear reply or right solution.

please note little part of code that's beingness edited.

require('mysql_connect.php'); function __construct($options = null, $initialize = true, $error_messages = null) { $this->options = array( 'script_url' => $this->get_full_url().'/', 'upload_dir' => dirname($this->get_server_var('script_filename')).'/../../../uploads/user/table1/'.$path_way.'/', 'upload_url' => $this->get_full_url().'/../../../uploads/user/table1/'.$path_way.'/', 'user_dirs' => false, 'mkdir_mode' => 0755, 'param_name' => 'files', // set next alternative 'post', if server not back upwards // delete requests. parameter sent client: 'delete_type' => 'delete', 'access_control_allow_origin' => '*', 'access_control_allow_credentials' => false, 'access_control_allow_methods' => array( 'options', 'head', 'get', 'post', 'put', 'patch', 'delete' ),

jquery jquery-plugins jquery-file-upload blueimp jquery-upload-file-plugin

No comments:

Post a Comment