Fixed attachment uploader bug