<% session_key_name = Rails.application.config.session_options[:key] %>
<% content_for :javascript do %>
	<link href="/uploadify3/uploadify.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="/uploadify3/uploadify.js"></script>

	<script type="text/javascript">
		jQuery(document).ready(function() {
			jQuery('#<%= data_name %>_upload').uploadify({
			  swf			  : '/uploadify3/uploadify.swf',
		      uploader        : '<%= upload_path %>',
		      fileObjName     : '<%= data_name %>',
		      cancelImage     : '/uploadify3/cancel.png',
		      fileTypeDesc    : '<%= file_type_description %>',
		      fileTypeExts    : '<%= file_types %>',
			  checkExisting   : false,
		      auto            : true,
		      fileSizeLimit   : <%= file_size_limit %>,
		      width           : 350,
		      height          : 25,
		      buttonText      : '上传',
		      postData        : {
		        '_http_accept': 'application/javascript',
		        '_method': 'post',
		        '<%= session_key_name %>' : '<%= cookies[session_key_name] %>',
				'category': '<%= params[:category] %>',
		        'authenticity_token': '<%= form_authenticity_token %>'
		      }
		  });
  		});
	</script>
<% end %>
<% session_key_name = Rails.application.config.session_options[:key] %>
<% content_for :javascript do %>
	<link href="/uploadify3/uploadify.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="/uploadify3/uploadify.js"></script>

	<script type="text/javascript">
		jQuery(document).ready(function() {
			jQuery('#<%= data_name %>_upload').uploadify({
			  swf			  : '/uploadify3/uploadify.swf',
		      uploader        : '<%= upload_path %>',
		      fileObjName     : '<%= data_name %>',
		      cancelImage     : '/uploadify3/cancel.png',
		      fileTypeDesc    : '<%= file_type_description %>',
		      fileTypeExts    : '<%= file_types %>',
			  checkExisting   : false,
		      auto            : true,
			  multi			  : true,
		      fileSizeLimit   : <%= file_size_limit %>,
		      width           : 350,
		      height          : 25,
		      buttonText      : '上传',
		      postData        : {
		        '_http_accept': 'application/javascript',
		        '_method': 'post',
		        '<%= session_key_name %>' : '<%= cookies[session_key_name] %>',
				'category': '<%= params[:category] %>',
		        'authenticity_token': '<%= form_authenticity_token %>'
		      }
		  });
  		});
	</script>
<% end %>
Allow to select multiple objects to upload.
Allow to select multiple objects to upload.