insight's avatar

What changes need in UploadHandler class in blueimp jQuery-File-Upload ?

Dear Friends, I am trying to make use of the UploadHandler.php class as an App/Library file to make ajax upload. But I have not much idea in configuration details in constructor

you can see my doubtful lines below

public function __construct($options = null, $initialize = true, $error_messages = null) { $this->response = array(); $this->options = array( 'script_url' => $this->get_full_url().'/'.$this->basename($this->get_server_var('SCRIPT_NAME')), //'upload_dir' => dirname($this->get_server_var('SCRIPT_FILENAME')).'/files/', 'upload_dir' => Storage::path('public/docs/'), //'upload_url' => $this->get_full_url().'/files/', 'upload_url' => Storage::url('public/docs/'), 'input_stream' => 'php://input', 'user_dirs' => false, 'mkdir_mode' => 0755, 'param_name' => 'files',

please any body advise each line. My biggest doubt in get_full_url ...

please advise any body ..

Thanks

0 likes
0 replies

Please or to participate in this conversation.