How to add media from wp into mastodon

Hello everyone, I’m very new to make and not skilled in programming. I am having trouble uploading image data from my WordPress website to Mastodon upload media module.

I have tried passing the image URL parameter into the file data field, but it returns the error “Validation failed: File content type is invalid, File is invalid.” Is there a way to transfer images from my website?


Welcome to the Make community!

Does the Module Require You to Map File Data?

Did you forget to download the file using the file’s link/URL? If it’s not downloaded to the scenario, the next module can’t access the file binary data (contents).

To do this, you can use the HTTPGet a File” module with the file URL that you need to download. Your file has to be publicly accessible on the internet (doesn’t require authentication).

For more information, see the HTTP page in the Make Help Centre, which covers the following:

  • Overview of the HTTP modules
  • Make a request
  • Make a Basic Auth request
  • Make an API key Auth request
  • Make an OAuth 2.0 request
  • Make a client certificate authentication request
  • Get a file
  • Resolve a target URL
  • Retrieve Headers
  • How to generate JSON Web Tokens (JWT)

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

1 Like