Image upload related to user

Remote Digital Ocean droplet running ubuntu 20.04 and nginx
4.6 Strapi
UBUNTU 20.04
Default SQL
18.13.0 Node
8.19.3 NPM

I am trying to upload an image that has:
formdata.append(“ref”, “user”);
formdata.append(“refId”, userId);
formdata.append(“field”, “profpic”);
formdata.append(“source”, “users-permissions”);

whenever the field is in the request the upload is failing, if I remove it the upload works but it’s not listed in the correct place that I want it to be.
I’m using strapi’s local upload api
strapiback.com/api/upload

I was able to fix this issue


 formdata.append('ref', 'plugin::users-permissions.user');

and no need for the source field