Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1710

phpBB Custom Coding • Re: $request->file('files'); not working ?

$
0
0
I suspect that this may be a bug within the request.php file because I am getting the same result but I am not certain at the moment.

To solve your proplem just use name="files[]" in your HTML file and in your php script the following line to get the variable:

Code:

$files = $request->raw_variable('files', [], \phpbb\request\request_interface::FILES);
This works for me, even with multiple files.

Statistics: Posted by Mike-on-Tour — Mon Jul 01, 2024 5:08 pm



Viewing all articles
Browse latest Browse all 1710

Trending Articles