Front End Upload
Moving files to Media Library (3 posts)

  1. davidpike7
    Posted 4 years ago #

    Hello mate, love the plugin.

    I'm just experimenting on my own project using plupload on the frontend of a theme.

    At the moment I'm using the default custom code demo, which I noticed is quite similar to your own. I've got it working so it uploads to the 'uploads' directory. However I was wondering how you integrated this with the WP media library?

    Whenever I've tried to use wp_handle_upload() on the contents of the $_FILES['file'] I get a 500 error. I've also thought about just using wp_insert_attachment() once I've uploaded it but ideally I'd like to use wp_handle_upload() so it generates all the thumbnails etc.

    I had the code working with a standard POST so not sure if it's anything to do with sending the file with AJAX?

    Any thoughts would be much appreciated




  2. Jonathan Christopher
    Plugin Contributor

    Posted 4 years ago #

    Hi David, the Pro version will allow you to move uploaded files to the Media library:


  3. davidpike7
    Posted 4 years ago #

    Appreciate the suggestion but I'm building something quite custom, so I won't be using the plugin itself.

    I'm just having a look at your code for inspiration because I'm planning to use plupload too.

    Would appreciate the advice though or any chance you could point me in the right direction?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Front End Upload
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic