Search found 3 matches

by CongVT
Wed Jul 18, 2018 9:52 am
Forum: Extension Writers Discussion
Topic: How to using "upload class" in PHPBB 3.2.2
Replies: 5
Views: 445

Re: How to using "upload class" in PHPBB 3.2.2

private function doc_upload($action = '') { $old_doc = $this->request->variable('old_doc ', ''); $upload_dir = $this->root_path . 'ldocs'; $upload = $this->files_factory->get('upload') ->set_allowed_extensions(array('doc', 'docx', 'xls', 'xlsx')); // Upload file $file = $upload->handle_upload('file...
by CongVT
Mon Jul 16, 2018 4:31 am
Forum: Extension Writers Discussion
Topic: How to using "upload class" in PHPBB 3.2.2
Replies: 5
Views: 445

Re: How to using "upload class" in PHPBB 3.2.2

You can read about it here => File uploads . Thank you ! I also followed the basic instructions! The code is still running and not error. However, no ffile is transferred to the host. I still do not understand where I was wrong because it does not report any errors! Can someone show me an example c...
by CongVT
Sun Jul 15, 2018 9:37 am
Forum: Extension Writers Discussion
Topic: How to using "upload class" in PHPBB 3.2.2
Replies: 5
Views: 445

How to using "upload class" in PHPBB 3.2.2

Hi everyone ! I'm a new in this forum. I am learning to write an extension ! I'm having problems using an upload class. I tried a lot of the code is still running but no file is up. Does anyone here have any sample code on this issue or can help me see the code below private function doc_upload($act...

Go to advanced search