- This topic has 5 replies, 2 voices, and was last updated 8 years, 4 months ago by
Steve.
-
AuthorPosts
-
-
September 3, 2013 at 1:27 pm #1054
atomworksMemberHi guys,
Sorry to bring up the media uploader again, you must be getting a bit sick of it at the moment.
I’ve got an issue when using it to upload non-image files. It’s on line 824 of the piklist.js file and it relates to there not being attachment.sizes.full. Much of the code in that function is based off the assumption that you’re dealing with an image. First glance attachment.type will specify “image” so it’s easy to identify but I won’t have time to dig in and be any more use until later in the week.
-
September 5, 2013 at 10:04 am #1057
SteveKeymasterCan you be a bit more specifc? Which field are you using: Basic upload or Featured Image? What’s the error you are getting?
-
September 9, 2013 at 10:57 am #1066
atomworksMemberHi Steve,
Sorry for the delay getting back to you, must have forgotten to tick the follow up e-mail notification box.
This is the code I’m using to set up the field inside my meta box.
piklist('field', array( 'type' => 'file' ,'field' => 'guide_file' ,'scope' => 'post_meta' ,'label' => 'Add File(s)' ,'description' => 'The guide file for the user to download.' ,'options' => array( 'title' => 'Add File(s)' ,'button' => 'Add' ) ));This brings up the error:
Uncaught TypeError: Cannot read property 'full' of undefined - piklist.js?ver=0.8.0b5:824The script seems to be looking for information that is supplied when you choose an image file and doesn’t have a way to distinguish and handle non-image files at this time.
-
September 10, 2013 at 10:24 pm #1070
SteveKeymasterWorking on it…
-
September 14, 2013 at 11:18 pm #1078
SteveKeymasterFixed in next version.
-
September 23, 2013 at 12:58 pm #1112
SteveKeymasterFixed in Beta 6
You can download it from Trunk at WordPress.org >
-
-
AuthorPosts
- You must be logged in to reply to this topic.