Plugin Directory

Changeset 991411


Ignore:
Timestamp:
09/16/2014 09:05:53 PM (12 years ago)
Author:
tcmccarthy1
Message:

Adds ajax push single support for non images

Location:
tcs3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tcs3/tags/1.1/tcS3.php

    r991409 r991411  
    44 * Plugin URI: http://www.tc-mccarthy.com
    55 * Description: Allows site admins to push uploads to S3
    6  * Version: 1.0
     6 * Version: 1.1
    77 * Author: TC McCarthy
    88 * Author URI: http://www.tc-mccarthy.com
     
    518518        $post_id = $_POST["postID"];
    519519        $file_data = wp_get_attachment_metadata($post_id);
     520        if(count($file_data) > 0){
     521            $file_data["file"] = get_attached_file($post_id);
     522        }
     523       
    520524        $keys = $this->build_attachment_keys($file_data);
    521525
  • tcs3/trunk/tcS3.php

    r991409 r991411  
    518518        $post_id = $_POST["postID"];
    519519        $file_data = wp_get_attachment_metadata($post_id);
     520        if(count($file_data) > 0){
     521            $file_data["file"] = get_attached_file($post_id);
     522        }
     523       
    520524        $keys = $this->build_attachment_keys($file_data);
    521525
Note: See TracChangeset for help on using the changeset viewer.