DEV Community

Discussion on: Connecting to WordPress using C#

Collapse
 
yeisonpx profile image
Yeison Lapaix

Hi Audrey, thanks to you for your feedback. You can upload images using the client.Media object and methods. For example:

 var createdMedia = await client.Media.Create(@"C:\pathToFile\media.jpg","media.jpg");

Check more details here in the documentation: Working with Medias

I hope this can help you.

Collapse
 
mohammedtuhami330 profile image
MohammedTuhami330

Object reference not set to an instance of an object" mean?

Collapse
 
mohammedtuhami330 profile image
MohammedTuhami330

I want to connect using application password !
can i ?