Is that with LSAPI PHP?
Are you sure it is 404 error? 404 is file not found.
Is there any thing special for the URL for the upload request, like special context, rewritten url etc?
Can you please give 2.1.8 a try, just download the new release by changing the version number.