added BeforeUploadChunk