Fix attachment upload