On Thu, 2005-12-29 at 09:19 +0900, ecto Support wrote:
> Hi,
> 
> It might have been discussed on the list before, but uploads via  
> XMLRPC in 2.0 is completely broken. The errors returned are always  
> <string>Could not write file banner.jpg</string>. An upload via the  
> control panel creates a directory uploads/2005/12/ for example, but  
> that doesn't occur with xmlrpc. Are there any plans to fix this,  
> since I got a bunch of ecto-using wordpress bloggers who would love  
> to be able to upload again.


wp_upload_bits() in functions-post.php handles writing the bits. In that
function is this line:

$ifp = @ fopen($new_file, 'wb');

Removing "@" will cause the error text to be output so that we can see
exactly why fopen isn't working.

$ifp = fopen($new_file, 'wb');

Ryan

_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to