change the upload poster function