Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a way to use wp multifile upload system in my plugin?

share|improve this question
    
If you need this for frontend (as you commented to some answers) you should write that in your question description. Many users might think about backend first. –  hakre Dec 2 '10 at 13:05
    
I change title of my question,sorry –  user1147 Dec 2 '10 at 13:12
    
This is what I thought. Sorry for that... –  Horttcore Dec 2 '10 at 15:45

4 Answers 4

up vote 2 down vote accepted

You could always include the stuff related to swfupload, yes. But there will be a better way in WP 3.1: you'll be able to use the whole upload UI.

share|improve this answer
    
Are you sure ? :) I need to enable wp multifile system on frontend,to enable users just to upload an images,video,...,on frontend.Just to upload it with wp multifile upload system –  user1147 Dec 2 '10 at 12:59
    
Sorry,what do you mean with this : "You could always include the stuff related to swfupload" ? –  user1147 Dec 2 '10 at 18:04
    
The js for multi-file uploads is swfupload... you merely need to enqueue it: codex.wordpress.org/Function_Reference/wp_enqueue_script –  Denis Dec 2 '10 at 20:26
    
And yes, I'm quite sure that there was a recent commit related to allowing plugins to use the whole uploads UI (and possibly for other things than uploading media). Whether you'll be able to bypass permission checks is another question entirely... –  Denis Dec 2 '10 at 20:27
    
can you elaborate? how will this be done? (which commit are you referring to?) –  somatic Dec 2 '10 at 21:06

There is an action to call the media buttons. Forgive me I don't know it at the moment, but you could look it up by yourself.

share|improve this answer
    
ok,thank you,I know for that,but I would like to enable this feature on frontend,to enable my users uploads an image,video,...,but with wordpress multfile uplaod system,just to upload it.Is this thing possible? –  user1147 Dec 2 '10 at 12:57

I'd let them upload through Picasa or Google Docs and embed that page. What say ye, fellow WP Developers? If not, I'd also really like to know an answer.

share|improve this answer
    
I would just like to use wp multiple file upload on frontend and backend :) in my plugin,because I want to upload on my server –  user1147 Dec 2 '10 at 22:16

This may be abit late but I found a helpful tutorial on Using WordPress’ Built-in Media Upload

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.