I’m also having problems with this, look also to be associated to Authentication.
The only other thing is I’d like to pass user_id to associate the uploaded file as a profile photo, am I doing that correctly on line 6?
I’m also having problems with this, look also to be associated to Authentication.
The only other thing is I’d like to pass user_id to associate the uploaded file as a profile photo, am I doing that correctly on line 6?
You are calling the string endpoint at line 6. You need the variable values.
interpolate them:
or concatenate them
3 Ways to Concatenate Strings in JavaScript - Mastering JS.
something like “…/upload/image/” + user + “/” id
OK thanks, let me play around with that some. In terms of the authentication piece, does that look correct?
you dont need the trend-id