Failing to save an attachment

I tried various permutations of this and was not able to reproduce it. Could you provide the stack trace? That would help me get an idea of where things might go wrong.