Get base name upload |
(06-29-2018, 10:24 AM)Nome Wrote: Sorry... Perhaps this is too simple a question: How to get the full name of the file at uploading? Using the example code below, create a variable using the line of code you created for the upload path, then concatenate with the file name. The example variable below is $imagepath. This variable will represent the full path to your file. Code: public function do_upload()
Since this is in the CI4 forums, this link should help you out. Basically $this->request->getFile('picture')->getName();
(07-02-2018, 09:26 AM)kilishan Wrote: Since this is in the CI4 forums, this link should help you out. Basically $this->request->getFile('picture')->getName(); Yes it is valid for CI4, because i use it. P.S Thanks for the answer! I hope that I do not pollute the forum with my questions because of inexperience ... I hope to recoup your time spent on the answers, helping in the future) |
Welcome Guest, Not a member yet? Register Sign In |