{"id":47430,"date":"2011-08-29T17:16:41","date_gmt":"2011-08-29T17:16:41","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/uploadify-integration\/"},"modified":"2012-09-29T21:07:49","modified_gmt":"2012-09-29T21:07:49","slug":"uploadify-integration","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/uploadify-integration\/","author":8183508,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.9.7","stable_tag":"0.9.7","tested":"3.2.1","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Uploadify Integration","header_author":"Mike Allen","header_description":"","assets_banners_color":"","last_updated":"2012-09-29 21:07:49","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/mikeleonardallen.com\/","header_author_uri":"http:\/\/mikeleonardallen.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2366,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.9.4":"<p>Version 0.9.4 adds support for month and year based folder organization.<\/p>","0.9.1":"<p>Version 0.9.1 fixes several bugs that prevented Uploadify Integration from working correctly.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9","0.9.1","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1539259","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539259","resolution":"1","location":"plugin"}},"screenshots":{"1":"Settings Page","2":"Uploadify Integration used within a page."}},"plugin_section":[],"plugin_tags":[80,259,1263,89492,23321],"plugin_category":[43,50],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-47430","plugin","type-plugin","status-closed","hentry","plugin_tags-shortcode","plugin_tags-upload","plugin_tags-uploader","plugin_tags-uploadify","plugin_tags-uploading","plugin_category-customization","plugin_category-media","plugin_committers-mikeleonardallen"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/uploadify-integration.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/uploadify-integration\/trunk\/screenshot-1.png?rev=1539259","caption":"Settings Page"},{"src":"https:\/\/ps.w.org\/uploadify-integration\/trunk\/screenshot-2.png?rev=1539259","caption":"Uploadify Integration used within a page."}],"raw_content":"<!--section=description-->\n<p>Uploadify Integration is an attempt to ease the very common task of including an upload field within a custom post type, options page, or user profile page.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Uses jQuery Uploadify<\/li>\n<li>Automatically saves to post meta, user meta, an option, or temporary depending on the metaType selected by the shortcode.<\/li>\n<li>Allows more than one shortcode per page.<\/li>\n<\/ul>\n\n<h4>Intended Audience<\/h4>\n\n<p>Uploadify Integration is intended to be a tool for developers needing to include an uploader within a form.  Because uploaded files can only be retrieved through code, this plugin may not be useful to anyone without knowledge of Wordpress Themes and PHP<\/p>\n\n<h4>Important Notes<\/h4>\n\n<p>Please check out the <code>Installation<\/code> and <code>Other Notes<\/code> tabs to see important details on how to use Uploadify Integration.  You will not be able to use this plugin without reading those pages.<\/p>\n\n<h4>Feedback<\/h4>\n\n<p>Please let me know how you would like this plugin to be improved by email: mikeleonardallen@gmail.com<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download and unpack plugin files to <strong>\/wp-content\/plugins\/uploadify-integration\/<\/strong><\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to the <em>Options\/Uploadify Integration<\/em> page in <em>Site Admin<\/em> and change the plugins options as you wish.<\/li>\n<li>Place the <code>[uploadify]<\/code> shortcode in your content.<\/li>\n<\/ol>\n\n<h4>Usage<\/h4>\n\n<p>Embed the <code>[uploadify]<\/code> shortcode to include the uploader in a page or post.<\/p>\n\n<h4>Options<\/h4>\n\n<ul>\n<li><strong>inputName<\/strong> : The key that will be used to save the meta data.  Defualt = 'files'<\/li>\n<li><strong>metaType<\/strong> : What to associate the uploaded files with.  Available options are <code>post<\/code>, <code>user<\/code>, <code>option<\/code>, and <code>temporary<\/code>. Default = <code>post<\/code><\/li>\n<li><strong>uploadMode<\/strong> : Allow multiple uploads or replace the previous upload.  Available options are <code>multiple<\/code> and <code>single<\/code>.  Setting this option to <code>multiple<\/code> will also enable the Uplodify multi setting. Default = <code>single<\/code><\/li>\n<li><strong>fileSizeLimit<\/strong> : Restriction on allowed file size in MB.<\/li>\n<li><strong>fileTypeExts<\/strong> : Restrict allowed file types.  Default is <code>*.*<\/code><\/li>\n<li><strong>fileTypeDesc<\/strong> : Used in conjunction with <code>fileTypeExts<\/code> to tell the user what types of files should be uploaded.<\/li>\n<li><strong>buttonText<\/strong> : Text to display on upload button.  Default is <code>Upload File<\/code><\/li>\n<li><strong>path<\/strong> : Path to save files.  If a path is provided, then a url for that path should also be provided if you intend to access files through a URL.<\/li>\n<li><strong>url<\/strong> : Url to modified file path.<\/li>\n<\/ul>\n\n<h4>Retrieving Files<\/h4>\n\n<p>Files are stored as post meta, user meta, or option meta stored under the inputName specified with the shortcode.  For example, with the shortcode:<\/p>\n\n<pre><code>[uploadify inputName=\"images\" fileTypeExts=\"*.jpg;*.png;*.gif;\" fileTypeDesc=\"Image Files\" metaType=\"post\"]\n<\/code><\/pre>\n\n<p>The files are retrieved like so:<\/p>\n\n<pre><code>$images = uploadify_get_files( 'post', get_the_ID(), 'images' );\n<\/code><\/pre>\n\n<p>Then to display them in your theme:<\/p>\n\n<pre><code>while( $image = array_shift( $images ) ) {\n    echo sprintf( '&lt;img src=\"%s\"\/&gt;', $image['url'] );\n}\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt>How can I send a notification email when an upload completes?<\/dt>\n<dd><p>Use the <code>uploadiy_file_upload<\/code> action<\/p>\n\n<pre><code>add_action( 'uploadify_file_upload', 'my_upload_notification', 10, 3 );\nfunction my_upload_notification( $file, $file_id, $meta_handler ) {\n    wp_mail(\n        \/\/ TODO: supply arguments\n    );\n}\n<\/code><\/pre><\/dd>\n<dt>How can I modify the uploaded file before saving to meta data?<\/dt>\n<dd><p>Use the <code>uploadify_handle_upload<\/code> filter<\/p>\n\n<pre><code>add_filter( 'uploadify_handle_upload', 'my_handle_upload' );\nfunction my_handle_upload( $file ) {\n    \/\/ TODO: do something to modify the file.\n    return $file;\n}\n<\/code><\/pre><\/dd>\n<dt>How can I change the uplaod path?<\/dt>\n<dd><p>Use the shortcode path attribute<\/p>\n\n<pre><code>[uploadify path='Upload path here' url='Remember to give a URL if you change the path']\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9.6 (September 29 2012)<\/h4>\n\n<ul>\n<li>Security Update: Removed XSS Vulnerablity in view files.<\/li>\n<\/ul>\n\n<h4>0.9.5 (January 29 2012)<\/h4>\n\n<ul>\n<li>Added support for specifying an upload path and url<\/li>\n<li>Added thumbnail view for uploaded images<\/li>\n<li>Added <code>temporary<\/code> metaType for generic use.<\/li>\n<li>Added uploadify_file_upload action for sending notifications upon a file upload.<\/li>\n<li>Added error handling for when a user uploads an insecure file type, or when a user does not have permission to upload a file<\/li>\n<li>Added uploadify_handle_upload filter for overriding a file before saving to meta data<\/li>\n<li>Added the uploadify_get_files for easier retrieval of files.<\/li>\n<li>Fixed uploader not applying with guest users.<\/li>\n<\/ul>\n\n<h4>0.9.4 (September 19 2011)<\/h4>\n\n<ul>\n<li>Added support for organizing uploads into month and year based folders.<\/li>\n<\/ul>\n\n<h4>0.9.3 (September 18 2011)<\/h4>\n\n<ul>\n<li>Provided the Uploadify multi setting when uploadMode is set to multiple.<\/li>\n<li>Added the uploadify_get_file_view filter to allow users to override the default view used to display uploaded files.<\/li>\n<li>Now using spl_autoload_register to include plugin files.<\/li>\n<li>Removed Taxonomy associated with file meta type.  Did not serve a purpose.<\/li>\n<li>Removed shortcode generator in favor documenting options to allow for less maintanance with future options.<\/li>\n<li>Removed file size limit description in settings page in favor of an external article providing more thourough examples.<\/li>\n<\/ul>\n\n<h4>0.9.2 (September 9 2011)<\/h4>\n\n<ul>\n<li>Included saving the upload path, so that you may change the upload path without breaking the links to previously uploaded files.<\/li>\n<li>By default scripts will now be included in all pages.  There is an option in the settings page to turn this off.<\/li>\n<li>Added screenshots.<\/li>\n<\/ul>\n\n<h4>0.9.1 (September 2 2011)<\/h4>\n\n<ul>\n<li>Fixed incorrect paths and urls.  Removed hard coded urls from the JavaScript.  Replaced AwTemplate with correct version of this class.<\/li>\n<\/ul>\n\n<h4>0.9 (August 28 2011)<\/h4>\n\n<ul>\n<li>Beta release.<\/li>\n<\/ul>","raw_excerpt":"Uploadify Integartion allows you to insert a jQuery uploadify uploader into your forms.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/47430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=47430"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mikeleonardallen"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=47430"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=47430"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=47430"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=47430"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=47430"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=47430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}