redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Media field for audio and video files

Open maarcin opened this issue 12 years ago • 7 comments

Hi guys,

quick question: how can I add audio or video files in media field? My field looks like this

array(
'id'=>'custom_media',
'type' => 'media', 
'title' => __('Media field', 'redux-framework-demo'),
'url' => true,
'mode' => false,
'readonly' => false,
'preview' => false,
'desc'=> __('Basic media uploader', 'redux-framework-demo'),
'subtitle' => __('Upload any media using the WordPress native uploader', 'redux-framework-demo'),
),

If I put link manually it works fine, but if I try to do this with Upload button input field stays emty (with placeholder in it), nothing happens. Any ideas?

Best Marcin

maarcin avatar Feb 13 '14 12:02 maarcin

Same here.

meydjer avatar Feb 14 '14 17:02 meydjer

There seems to be a small bug. We'll have it resolved next week. :)

dovy avatar Feb 14 '14 22:02 dovy

I've found that this issue is related with the commit a3f07a6a41f7d4ab9e4a4ed9e0732eb3848f4e2f, file "ReduxCore/inc/fields/media/field_media.js". I reverted this file to its previous version ("jQuery.redux.media" parts to "redux.media") and now the media upload is working with audio and video files.

After that, I tested the issue https://github.com/ReduxFramework/ReduxFramework/issues/551 and everything is working great. Should I open a Pull Request?

meydjer avatar Feb 16 '14 03:02 meydjer

Yeah, go ahead. I'll run it through the machine here, and if it works, we'll commit it. Thanks :)

kprovance avatar Feb 16 '14 20:02 kprovance

@maarcin, we just pushed a fix for this. Would you please download the update and verify it works for you? Thanks!

kprovance avatar Feb 16 '14 23:02 kprovance

@kprovance @meydjer This fixed it :) Checked with metaboxes too and everything works fine. Thanks.

maarcin avatar Feb 17 '14 11:02 maarcin

Awesome.

dovy avatar Feb 17 '14 20:02 dovy