<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Plupload Forum - Multipart-Params problems!?]]></title>
		<link>http://www.plupload.com/punbb/viewtopic.php?id=1474</link>
		<description><![CDATA[The most recent posts in Multipart-Params problems!?.]]></description>
		<lastBuildDate>Thu, 23 Feb 2012 14:58:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Multipart-Params problems!?]]></title>
			<link>http://www.plupload.com/punbb/viewtopic.php?pid=6312#p6312</link>
			<description><![CDATA[<p>Solution example:</p><div class="codebox"><pre><code>// they have to be defined at the start
//(1) in $(&quot;#uploader&quot;).pluploadQueue({}), add following to initialize:
multipart_params: { &#039;title&#039;: &#039;&#039;,&#039;comment&#039;: &#039;&#039; },

//(2) add the following right after $(&quot;#uploader&quot;).pluploadQueue({}).
var uploader = $(&#039;#uploader&#039;).pluploadQueue();
uploader.bind(&#039;FilesAdded&#039;, function(up, files) {
 uploader.settings.multipart_params.title = $(&quot;#title&quot;).val();
 uploader.settings.multipart_params.comment = $(&quot;#comment&quot;).val();
});</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (deslooverej)]]></author>
			<pubDate>Thu, 23 Feb 2012 14:58:13 +0000</pubDate>
			<guid>http://www.plupload.com/punbb/viewtopic.php?pid=6312#p6312</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multipart-Params problems!?]]></title>
			<link>http://www.plupload.com/punbb/viewtopic.php?pid=5909#p5909</link>
			<description><![CDATA[<p>This problem is raised a great deal on the forum.&nbsp; If you look through the old posts you should find the solution.</p>]]></description>
			<author><![CDATA[dummy@example.com (mike)]]></author>
			<pubDate>Thu, 12 Jan 2012 10:23:11 +0000</pubDate>
			<guid>http://www.plupload.com/punbb/viewtopic.php?pid=5909#p5909</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multipart-Params problems!?]]></title>
			<link>http://www.plupload.com/punbb/viewtopic.php?pid=5906#p5906</link>
			<description><![CDATA[<div class="quotebox"><cite>Zapper wrote:</cite><blockquote><p>Your url parameter is wrong.<br /></p><div class="codebox"><pre><code>url : &#039;/articlelist&#039;,</code></pre></div><p>This should be pointing to a file (like upload.php in the examples) not a folder.</p></blockquote></div><p>Hello Zapper,</p><p>first thx for your answer.<br />But /articlelist is a file ;-)</p><p>I do a rewrite via htaccess to a filename.<br />The only problem are the multipart-formdata, which not will be sent via POST</p>]]></description>
			<author><![CDATA[dummy@example.com (bastimm)]]></author>
			<pubDate>Thu, 12 Jan 2012 07:36:57 +0000</pubDate>
			<guid>http://www.plupload.com/punbb/viewtopic.php?pid=5906#p5906</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multipart-Params problems!?]]></title>
			<link>http://www.plupload.com/punbb/viewtopic.php?pid=5904#p5904</link>
			<description><![CDATA[<p>Your url parameter is wrong.<br /></p><div class="codebox"><pre><code>url : &#039;/articlelist&#039;,</code></pre></div><p>This should be pointing to a file (like upload.php in the examples) not a folder.</p><p>It should look something like this:<br /></p><div class="codebox"><pre><code>url : &#039;../upload.php&#039;,</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Zapper)]]></author>
			<pubDate>Thu, 12 Jan 2012 07:09:42 +0000</pubDate>
			<guid>http://www.plupload.com/punbb/viewtopic.php?pid=5904#p5904</guid>
		</item>
		<item>
			<title><![CDATA[Multipart-Params problems!?]]></title>
			<link>http://www.plupload.com/punbb/viewtopic.php?pid=5903#p5903</link>
			<description><![CDATA[<p>Hello together,</p><p>first thanks for this great uploader!!!</p><p>I have some problems with multipart-params.<br />first i included my parms in &quot;new plupload.Uploader(...&quot; and all worked fine!!</p><p>Now i have to use some variables direct from code. In this case: &quot;$(&#039;#cat_id&#039;).val()&quot;.<br />I tought i can do it with this code:<br /></p><div class="codebox"><pre><code>uploader.bind(&#039;BeforeUpload&#039;, function(up,file){
        up.settings.multipart_parms = {
            cat_id : $(&#039;#cat_id&#039;).val(), 
            ajax : &#039;addcatimage&#039;
        };
    });</code></pre></div><p>but this didnt work. If i do so no params will be submitted via POST!</p><p>Can somebody help me? I can`t find my error :s</p><p>Thanks in advance.</p><p>Here is my complete code:</p><br /><div class="codebox"><pre><code>$(document).ready(function(){
    var uploader = new plupload.Uploader({
        runtimes : &#039;html5&#039;,
        browse_button : &#039;catimage&#039;,
        container : &#039;catimagecontainer&#039;,
        max_file_size : &#039;2mb&#039;,
        url : &#039;/articlelist&#039;,
        filters : [
            {title : &quot;Image files&quot;, extensions : &quot;jpg,gif,png&quot;}
        ]
    });



    uploader.init();
    
    uploader.bind(&#039;BeforeUpload&#039;, function(up,file){
        up.settings.multipart_parms = {
            cat_id : $(&#039;#cat_id&#039;).val(), 
            ajax : &#039;addcatimage&#039;
        };
    });
    
    uploader.bind(&#039;FilesAdded&#039;, function(up, files) {
        
        $.each(files, function(i, file) {
            uploader.start();
        });

        up.refresh(); // Reposition Flash/Silverlight
    });

    uploader.bind(&#039;Error&#039;, function(up, err) {
        alert(&quot;Error: &quot; + err.code +
            &quot;, Message: &quot; + err.message +
            (err.file ? &quot;, File: &quot; + err.file.name : &quot;&quot;));
        up.refresh(); // Reposition Flash/Silverlight
    });

    uploader.bind(&#039;FileUploaded&#039;, function(up, file, response) {
        alert(response.response);
    });
});</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (bastimm)]]></author>
			<pubDate>Thu, 12 Jan 2012 06:52:52 +0000</pubDate>
			<guid>http://www.plupload.com/punbb/viewtopic.php?pid=5903#p5903</guid>
		</item>
	</channel>
</rss>
