fixed resource can't be uploaded