Forums

Post a image from code (2 posts)

  1. valfreixo
    Member
    Posted 3 years ago #

    I'm building a plugin that will have dedicated images. Is there a way for me to post an image directly from my code (plugin code) or do I have to post the image, write down the id (or url) go back to the plugin and put it in the form?

    Thank you guys

  2. valfreixo
    Member
    Posted 3 years ago #

    Ok, update. I've actually builted an form to upload the file and found the image_resize tag. By looking at the code in media.php it does what I need. However, I couldn't retrieve the $_FILES var. I guess wordpress is reseting it so I can't catch it on the other side. Any idea?

Topic Closed

This topic has been closed to new replies.

About this Topic