add possibility to stop beforeUpload event which now cancels upload