It looks like you're new here. If you want to get involved, click one of these buttons!
jQuery(document).ready(function() {
jQuery('#file_upload').uploadify({
'swf' : '<?php echo get_stylesheet_directory_uri() ?>/third-party/uploadify/uploadify.swf'
,'uploader' : '<?php echo get_stylesheet_directory_uri() ?>/third-party/uploadify/uploadify.php'
,'cancelImg' : '<?php echo get_stylesheet_directory_uri() ?>/third-party/uploadify/cancel.png'
,'folder' : '/wp-content/uploads'
,'auto' : true
,'fileTypeDesc' : 'Image Files'
,'fileTypeExts' : '*.gif; *.jpg; *.png'
,'method': 'post'
,'formData' : {'cat': '2'}
//'multi' : true,
//'uploadLimit' : 12,
//'queueID' : 'car_img_queue',
//'queueSizeLimit':12
//,'onQueueComplete' : function(queueData) {
// alert(queueData.uploadsSuccessful + ' files were successfully uploaded.');
// }
//,'onUploadComplete' : function(file) {
// alert('The file ' + file.name + ' finished processing.');
// }
,'onUploadSuccess' : function(file, data, response) {
alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
}
}); //uploadify
});
/*onserver*/
...
$targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/';