This might not be strictly a bug, but misconfiguration of the server settings, however it might not be clear to a normal user.
Force server URL settings on: Yes
Script path: empty
I'm posting an image hosted on the same URL as the board, e.g.
Posting produces this error:
Since in this function call:
$check_path is the script_path in the ACP and is empty when calling the function.