im refering to the documentation on https://book.cakephp.org/5/en/controllers/request-response.html#file-uploads
my situation, my upload works, the file did get uploaded to the targetpath, but the moveTo() method on line 62 still return NULL.
the Error code is 0. i debug everywhere, look at the screenshot below…
anyone ever encounter this? did i missed anything? this should be a straight forward upload script…
dirk
2
maybe the answers in this postings can be helpful for you:
1 Like
oh my… it was since 10 years ago!
maybe its my first time using the method, i must have been using the raw move_uploaded_file() all these time…
so it IS meant to not return anything if no errors!
guess ill just use is_null checking for this, weird, but thats how it works.
thanks for the link!