Aren't you using a specific authentication system ? This looks like a problem in the authentication..I heard about problems with attachments when using basic auth.