Fixed attachment uploading.