[wp-hackers] Additional file upload writeboxes for posts

Me info at danesdailyblog.com
Tue May 31 22:34:09 UTC 2011


Couldn"t you use a PHP function which would restrict upload types?

Sent via DROID on Verizon Wireless

-----Original message-----
From: Travis Northcutt <travis at travisnorthcutt.com>
To: wp-hackers at lists.automattic.com
Sent: Tue, May 31, 2011 15:21:21 GMT+00:00
Subject: Re: [wp-hackers] Additional file upload writeboxes for posts

I don't have any advice regarding how to restrict the file types allowed,
but I suggest you take a look at
this<https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress>
for
creating your custom metaboxes. It includes a file upload box in
example-functions.php.
--
Travis Northcutt


On Tue, May 31, 2011 at 8:28 AM, graq <wordpress at graq.co.uk> wrote:

> I have a CPT that needs to allow for files (PDFs/docs) to be uploaded
> against posts. I figured I could store these as attachments, but I can't  
get
> my head around how to build a custom write box for managing attachments,  
and
> how to restrict that to certain file types. Can anyone kick start me in  
the
> right direction?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list