You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POST the image to the user's uploads stream (for user fred, it's at /api/user/fred/uploads). The Content-Type should be the right content-type for the file (like image/gif or image/png). The data should be raw binary data for the file.
POST /api/user/fred/uploads HTTP/1.1
Host: pump.example
Content-Type: image/jpeg
Content-Length: 128443
AF^&%$LK*...
The results will be an ActivityStrea.ms representation of the object, in JSON.
Use the JSON results of the upload step to create a "post" Activity Streams activity and POST it to the user's feed (for user fred, it's /api/user/fred/feed).