<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Plupload Forum]]></title>
	<link rel="self" href="http://www.plupload.com/punbb/extern.php?action=feed&amp;type=atom"/>
	<updated>2010-09-09T15:14:38Z</updated>
	<generator>PunBB</generator>
	<id>http://www.plupload.com/punbb/index.php</id>
		<entry>
			<title type="html"><![CDATA[Sending unique file name and original file name?]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=251&amp;action=new"/>
			<summary type="html"><![CDATA[<p>I searched the forums and could not find the answer I was looking for, but I assume what I&#039;m trying to achieve is fairly common.</p><p>I want to be able to send the unique name and the original file name. However, I haven&#039;t figured out how to do this. I see that plupload sends chunk, chunks and the file name ... but if unique gets turned on it only sends out the guid. This makes it difficult to reconstruct, if I don&#039;t know the file name. Anyway to send both a guid and the original filename, or at least the original extension?</p><p>Thanks!</p><p>Edit: It looks like this was asked before (<a href="http://www.plupload.com/punbb/viewtopic.php?id=214">http://www.plupload.com/punbb/viewtopic.php?id=214</a>), but went unanswered.</p><p>Does the flash itself need to be updated to accomplish this? I&#039;m not that familiar with flash, but a shot in the dark attempt didn&#039;t seem to work:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getFlashObj().uploadFile(lookup[file.id], plupload.buildUrl(settings.url, { name: file.target_name, unique: file.name }), {</p>]]></summary>
			<author>
				<name><![CDATA[Spocke]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=540</uri>
			</author>
			<updated>2010-09-09T15:14:38Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=251&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[iphone & ipad]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=250&amp;action=new"/>
			<summary type="html"><![CDATA[<p>which runtime should be the most suitable for iphone or ipad? html4?<br />thanks in advance</p>]]></summary>
			<author>
				<name><![CDATA[giacomo.cozzi]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=7</uri>
			</author>
			<updated>2010-09-08T14:51:15Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=250&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[safari and flash runtime very slow]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=248&amp;action=new"/>
			<summary type="html"><![CDATA[<p>If I use the flash runtime with safari 5 on OSX, the flash runtime is very slow in the jquery upload queue widget, see <a href="http://www.plupload.com/example_all_runtimes.php">http://www.plupload.com/example_all_runtimes.php</a> first queue.</p><p>After selecting a file from the file picker dialog it takes about 20 seconds of beachballing before the file is actually added to the queue.<br />Unfortunatly the upload server I am using only supports mulitpart, so I cant use the html5 upload. </p><p>Does anybody have any suggustions as to what might be causing this?</p>]]></summary>
			<author>
				<name><![CDATA[borisnieuwenhuis]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=536</uri>
			</author>
			<updated>2010-09-08T14:33:46Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=248&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Plupload v1.2.4 released]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=249&amp;action=new"/>
			<summary type="html"><![CDATA[<p>This new version contains some important fixes but changes the default behavior of some things.</p><p>Multipart changes:<br />We used to have multipart disabled by default mainly since Safari 4 and Chrome 4 didn&#039;t support the possibility to send multipart encoded data using XMLHttpRequest. But new browsers have been released and people using Safari and Chrome tend to update quickly so we decided to switch multipart on by default since most users know how to handle that correctly on the server side.</p><p>Flash changes:<br />We pulled in a patch from Marcel Jackwerth that enables Plupload to automatically change the upload method to FileReference.upload depending on what settings you have and the file type you are uploading. This is good news for people uploading large files since it will not load the file into memory if it doesn&#039;t have to. However since Flash has a bug where it doesn&#039;t pass though cookies or have the ability to set custom headers you will have to pass though some authentication token in the upload url or similar. You can force the upload to use the UrlStream method we used before by setting urlstream_upload to false.</p><p>Other minor changes:<br />The unique_names setting will now retain the file extension this is vital for mapping mime types etc for uploaded files.</p><p>We added a new event called BeforeUpload this enables you to change config settings dynamically before each file gets uploaded. This has been a common request.</p><p>Longer extensions can now be used such as forcing tar.gz.</p><p>Better image scaling in Flash contributed by rcoopman.</p><p>And a lot more stuff check the changelog for details.</p>]]></summary>
			<author>
				<name><![CDATA[Spocke]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=4</uri>
			</author>
			<updated>2010-09-08T11:27:43Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=249&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Custom upload - Post data]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=246&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hi,</p><p>I&#039;m trying to integrate plupload with a custom form, everything is working as expected, uploads, chunks etc, but I can&#039;t get post data to be sent across the submit, e.g.:</p><br /><p>uploader_0_tmpname&nbsp; &nbsp; p15bn78p91ontvdl9rt1i9f2kd1.tmp<br />uploader_0_name&nbsp; &nbsp; file.zip<br />uploader_0_status&nbsp; &nbsp; done<br />uploader_count&nbsp; &nbsp; 1</p><br /><p>I&#039;ve looked at the documentation but can&#039;t find anything about binding plupload data to form, am I missing something?</p><p>Thanks in advance,<br />Luís Sousa</p>]]></summary>
			<author>
				<name><![CDATA[lsousa]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=533</uri>
			</author>
			<updated>2010-09-07T23:09:30Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=246&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Submit gets done twice?]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=78&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hi all,</p><p>I have the following problem.<br />My form consists of more then just the Plupload part, and also has some normal text inputs, etc. Therefor, a proper submit of the form is crucial.<br />When trying the demo code on the &quot;Examples&quot; page, my form gets submitted TWICE. Debugging it gave me the culprit: the code on line 54:<br /></p><div class="codebox"><pre><code>if (uploader.total.uploaded == uploader.files.length)</code></pre></div><p>is being run twice. Therefor, the form gets submitted twice. I&#039;ve replaced the code<br /></p><div class="codebox"><pre><code>$(&#039;form&#039;).submit();</code></pre></div><p>with a simple </p><div class="codebox"><pre><code>alert()</code></pre></div><p>, which gives me 2 alerts.<br />Anyone has the same problem? Is this a bug? Or an error on my side?</p><p>Thanks!</p>]]></summary>
			<author>
				<name><![CDATA[tuffkid]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=139</uri>
			</author>
			<updated>2010-09-07T08:42:16Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=78&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Flash stays at 0%]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=245&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Using the custom upload example with IE and Firefox, upload % remains at 0% even though file is uploaded completely.</p><p>Any ideas why?</p>]]></summary>
			<author>
				<name><![CDATA[mjim]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=526</uri>
			</author>
			<updated>2010-09-07T02:59:28Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=245&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[- Need help directing files to a Grails (or Java) backend server -]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=189&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Hi everyone, I&#039;m pretty new to web development so I apologize in advance for any newbie questions. I have been browsing the forums for help and I feel like I&#039;m close, but I just can&#039;t get it to work.</p><p>IN SHORT, MY PROBLEM IS: setting up a Plupload widget to send its multipart request and files to the appropriate Grails controller action. </p><p>Some background:</p><p>I have a short segment of Grails code that handles multipart-form uploads:</p><div class="codebox"><pre><code>def upload = {
        if(request.method == &#039;POST&#039;) {
            String result
            int cntUpload = 0
            Iterator itr = request.getFileNames();
            String dest = &quot;C:\\Downloads\\&quot;
            boolean success = (new File(dest)).mkdir();
            while(itr.hasNext()) {
                def file = request.getFile(itr.next());
                File destination = new File(dest + file.getOriginalFilename())
                if (!file.isEmpty()){
                    file.transferTo(destination)
                    cntUpload++
                    // success
                }
                else{    
                    // failure
                }
            }
         
            result = cntUpload + &quot; files successfully uploaded.&quot;
            redirect(action:index,params:[message:result])
        }
    }</code></pre></div><p>Here is the Grails Server Page I use to test the upload:</p><div class="codebox"><pre><code>&lt;html&gt;
    &lt;head&gt;
        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;/&gt;
        &lt;meta name=&quot;layout&quot; content=&quot;main&quot; /&gt;
        &lt;title&gt;Test Upload&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;div class=&quot;body&quot;&gt;
            &lt;h1&gt;Upload File&lt;/h1&gt;
            &lt;g:message code=&quot;${message}&quot; /&gt;
            &lt;g:form method=&quot;post&quot; action=&quot;upload&quot; enctype=&quot;multipart/form-data&quot;&gt;
            &lt;input type=&quot;file&quot; name=&quot;file_1&quot;/&gt;&lt;br/&gt;
            &lt;input type=&quot;file&quot; name=&quot;file_2&quot;/&gt;&lt;br/&gt;
            &lt;input type=&quot;file&quot; name=&quot;file_3&quot;/&gt;&lt;br/&gt;
            &lt;input type=&quot;file&quot; name=&quot;file_4&quot;/&gt;&lt;br/&gt;
            &lt;input type=&quot;file&quot; name=&quot;file_5&quot;/&gt;&lt;br/&gt;
            &lt;input type=&quot;submit&quot;/&gt;
            &lt;/g:form&gt;
        &lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;</code></pre></div><p>The following line:<br /></p><div class="codebox"><pre><code> &lt;g:form method=&quot;post&quot; action=&quot;upload&quot; enctype=&quot;multipart/form-data&quot;&gt; </code></pre></div><p>makes sure that the files in the multipart form are directed to the &quot;upload&quot; action in the controller.</p><p>To reiterate, my problem is setting up a Plupload widget to send its multipart request to the appropriate Grails controller action. I have enabled multipart in the widget javascript code, but I don&#039;t know what to use as the URL. I have tried setting the URL to the address of the action when the Grails app is running, but that does nothing.</p><p>If anyone has any ideas, please let me know. All help is appreciated. The only other thing I can think of doing is creating a .gsp file for the upload action and redirecting the widget url to it. Thanks in advance!</p>]]></summary>
			<author>
				<name><![CDATA[c_los]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=340</uri>
			</author>
			<updated>2010-09-06T20:26:32Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=189&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[issues uploading photos crossdomain with html5]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=244&amp;action=new"/>
			<summary type="html"><![CDATA[<p>We have used successfully plupload plugin to upload photos crossdomain using flash runtime.<br />Now, we would like to upload photos crossdomain using html5.</p><p>Uploader object is initialized in this way:</p><p>myVirgilioWall.uploader = new plupload.Uploader({<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; runtimes : &#039;html5,flash,gears,silverlight,browserplus,html4&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; multipart: true,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; multipart_params : {service : &#039;people&#039;, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description : description, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; channelname : myVirgilioWall.context.full_channel, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; referrerid : &#039;page.&#039; + utils.getPageOwner(), <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; callback : &#039;myVirgilioWall.uploadPhoto&#039;},<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file_data_name : &#039;photo&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unique_names : false,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; browse_button : &#039;pickfiles&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; container : &#039;uploadContainer&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; multi_selection : false,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; max_file_size : &#039;5mb&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url : &#039;<a href="http://faanywhere.virgilio.it/fa-fotoapp-service-web/uploadphoto">http://faanywhere.virgilio.it/fa-fotoap &#133; ploadphoto</a>&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; flash_swf_url : &#039;<a href="http://people.virgilio.it/_ria/plupload.flash.swf">http://people.virgilio.it/_ria/plupload.flash.swf</a>&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; silverlight_xap_url : &#039;<a href="http://people.virgilio.it/_ria/plupload.silverlight.xap">http://people.virgilio.it/_ria/plupload.silverlight.xap</a>&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filters : [<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {title : &quot;Image files&quot;, extensions : &quot;jpg,jpeg,gif,png,bmp,tif,tiff&quot;}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //resize : {width : 700, height : 700, quality : 90}<br />&nbsp; &nbsp; &nbsp; &nbsp; });</p><p>In our first attempt, we got a 500 server error in the POST which followed the first OPTIONS request.<br />Then, following the Mozilla website<br />(<a href="https://developer.mozilla.org/en/HTTP_access_control">https://developer.mozilla.org/en/HTTP_access_control</a>),<br />we have made a second attempt, adding in the file plupload.html5.js this string:<br />xhr.withCredentials = &quot;true&quot;;<br />inside the function sendBinaryBlob(blob) (line 234)<br />in order to allow the browser to send cookies to the server.</p><p>Now, the POST return 200 but there is no content. <br />Instead, we would expect a json response because the servlet returned the content correctly when we used flash runtime.</p><p>Thanks in advance for any suggestion!</p>]]></summary>
			<author>
				<name><![CDATA[federico]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=524</uri>
			</author>
			<updated>2010-09-06T15:31:38Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=244&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Resize Issues]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=112&amp;action=new"/>
			<summary type="html"><![CDATA[<p>I have 2 problems with resize (flash runtime):</p><p>1. Uploaded files are corrupted if their original&nbsp; width and height less than specified in the resize settings.</p><p>2. Files also corrupted if resize option is not specified.</p><p>Are these known issues?</p>]]></summary>
			<author>
				<name><![CDATA[jgf]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=212</uri>
			</author>
			<updated>2010-09-06T10:00:28Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=112&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Original file's content-type?]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=58&amp;action=new"/>
			<summary type="html"><![CDATA[<p>I&#039;m looking to replace a basic form uploader with plupload, however the &quot;Content-type&quot; for all files in the request comes through as &quot;application/octet-stream.&quot; </p><p>My application requires knowing the file&#039;s content-type -- and I&#039;d prefer not to have to generate a list of all known file extensions and their mime types.</p><p>Is there any way to set this to the file&#039;s content type? Is this not possible due to the uploaders used?</p><p>Thanks!</p><p>-Patrick</p>]]></summary>
			<author>
				<name><![CDATA[Spocke]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=94</uri>
			</author>
			<updated>2010-09-03T12:48:43Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=58&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Switch runtime]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=240&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Is it possible to switch runtime after the script has initialized?<br />I would like to offer my members a way to maybe switch to HTML4 if for example Flash is creating problems for them without doing a page refresh.</p><p>Thanks!</p>]]></summary>
			<author>
				<name><![CDATA[Spocke]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=500</uri>
			</author>
			<updated>2010-09-03T12:27:44Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=240&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[plupload with Rails, ajax response ignored]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=212&amp;action=new"/>
			<summary type="html"><![CDATA[<p>I have almost finished setting up plupload (html5) with my Rails app but I ran into a wall.</p><p>I have the custom widget sending the file to my controller. The plan was to create a (paperclip) image object in the database and post a preview with AJAX. I am seeing the POST response with firebug but the browser isn&#039;t doing anything with it. It&#039;s just an &quot;alert&quot; now for testing.</p><p>I know this might be out of your scope but any help would be appreciated, even if it&#039;s to tell me that this is or isn&#039;t possible with regard to plupload internals.</p><p>Here is the code: <a href="http://pastebin.com/aX65NzgS">http://pastebin.com/aX65NzgS</a></p>]]></summary>
			<author>
				<name><![CDATA[hesham]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=406</uri>
			</author>
			<updated>2010-09-01T16:36:34Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=212&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Mootools Quickstart]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=52&amp;action=new"/>
			<summary type="html"><![CDATA[<p>First off, thanks for plupload, good stuff. Noticed that all the documentations and examples are in JQuery. So, here&#039;s the example that should get all Mootoolers out there started. I&#039;ve literally translated the example from JQuery to Mootools, so you don&#039;t have to do the dirty work...</p><p>&lt;script type=&quot;text/javascript&quot; src=&quot;js/mootools124core.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;js/plupload.min.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;js/plupload.html5.min.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />window.addEvent(&#039;domready&#039;, function(){<br />&nbsp; &nbsp; // (0) CREATE PLUPLOADER OBJECT<br />&nbsp; &nbsp; var uploader = new plupload.Uploader({<br />&nbsp; &nbsp; &nbsp; &nbsp; runtimes : &#039;html5&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; browse_button : &#039;pickFiles&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; container : &#039;container&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; drop_element : &#039;dropList&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; url : &#039;upload.php&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; max_file_size : &#039;10mb&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; unique_names : true,<br />&nbsp; &nbsp; &nbsp; &nbsp; chunk_size : &#039;1mb&#039;<br />&nbsp; &nbsp; });</p><p>&nbsp; &nbsp; // (1) INIT ACTIONS<br />&nbsp; &nbsp; uploader.bind(&#039;Init&#039;, function(up, params){<br />&nbsp; &nbsp; &nbsp; &nbsp; // FORCEFULLY NUKE GRACEFUL DEGRADING FALLBACK ON INIT<br />&nbsp; &nbsp; &nbsp; &nbsp; $(&#039;fallback&#039;).destroy();<br />&nbsp; &nbsp; &nbsp; &nbsp; $(&#039;container&#039;).removeClass(&quot;hidden&quot;);<br />&nbsp; &nbsp; });</p><p>&nbsp; &nbsp; // (2) ON FILES ADDED ACTION<br />&nbsp; &nbsp; uploader.bind(&#039;FilesAdded&#039;, function(up, files){<br />&nbsp; &nbsp; &nbsp; &nbsp; files.each(function(file, idx){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&#039;dropList&#039;).adopt(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Element(&#039;div&#039;, {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id: file.id,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; html: &quot;Name : &quot; + file.name + &quot; Size : &quot; + file.size + &quot;&lt;span id=&#039;progress&quot; + file.id + &quot;&#039;&gt;&lt;/span&gt;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />&nbsp; &nbsp; &nbsp; &nbsp; });<br />&nbsp; &nbsp; });</p><p>&nbsp; &nbsp; // (3) ON FILE UPLOAD PROGRESS ACTION<br />&nbsp; &nbsp; uploader.bind(&#039;UploadProgress&#039;, function(up, file){<br />&nbsp; &nbsp; &nbsp; &nbsp; $(&#039;progress&#039;+file.id).set(&quot;html&quot;, file.percent + &quot;%&quot;);<br />&nbsp; &nbsp; });</p><p>&nbsp; &nbsp; // (4) UPLOAD FILES FIRE STARTER<br />&nbsp; &nbsp; $(&#039;uploadFiles&#039;).addEvent(&#039;click&#039;, function(e){<br />&nbsp; &nbsp; &nbsp; &nbsp; e.stop();<br />&nbsp; &nbsp; &nbsp; &nbsp; uploader.start();<br />&nbsp; &nbsp; });</p><p>&nbsp; &nbsp; // (5) KICK-START PLUPLOAD<br />&nbsp; &nbsp; uploader.init();<br />});<br />&lt;/script&gt;</p><p>&lt;!-- UPLOAD CONTAINER --&gt;<br />&lt;div id=&quot;container&quot; class=&quot;hidden&quot;&gt;<br />&nbsp; &nbsp; Drop files below : <br />&nbsp; &nbsp; &lt;div id=&quot;dropList&quot;&gt;&lt;/div&gt;<br />&nbsp; &nbsp; &lt;br /&gt;<br />&nbsp; &nbsp; &lt;a id=&quot;pickFiles&quot; href=&quot;#&quot;&gt;[Select files]&lt;/a&gt;<br />&nbsp; &nbsp; &lt;a id=&quot;uploadFiles&quot; href=&quot;#&quot;&gt;[Upload files]&lt;/a&gt;<br />&lt;/div&gt;</p><p>&lt;!-- FALLBACK; SHOULD LOADING OF PLUPLOAD FAILS --&gt;<br />&lt;div id=&quot;fallback&quot;&gt;<br />&nbsp; &nbsp; Opps. Still on dinosaur technology? Time to update.&lt;br /&gt;<br />&nbsp; &nbsp; Place old school upload form here.<br />&lt;/div&gt;</p><p>&lt;style type=&quot;text/css&quot;&gt;<br />.hidden{ display:none; }<br />#dropList{ background:#aaa; width:500px; height:500px; }<br />&lt;/style&gt;</p>]]></summary>
			<author>
				<name><![CDATA[dxh]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=88</uri>
			</author>
			<updated>2010-09-01T06:23:21Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=52&amp;action=new</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[POST/GET data with uploading]]></title>
			<link rel="alternate" href="http://www.plupload.com/punbb/viewtopic.php?id=239&amp;action=new"/>
			<summary type="html"><![CDATA[<p>Have been sitting&nbsp; many hours now to challenge myself, how to post/get data with uploader. (and i have NO knowledge of PHP /JS what so ever... tho im in love with ActipScript3, which is of course near to JS/Java)<br />I thought this maybe will help other n00b such myself.<br />Anyhow...<br />My challenge was, when uploading files, how to save filename (nemas problemas) AND album name (challenge) in DB...</p><p>Here&#039;s what i did... (maybe not the best solution, but it works)</p><p>I already have Album names and ID stored in DB, so just echo these out in a dropdown within a form.<br />Next step is to press Next button, which posts value from the dropdown into same page. <br />There of course would be if - else case to vary the outcome.</p><p>As you can see below, i set general setting for uploader at runtime and thanx to if-else&nbsp; i can pass some kind of variable to upload.php file, where i also have sql query to store filename AND this album ID in db. <img src="http://www.plupload.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>In upload.php i use GET, and pass that to sql query.</p><div class="codebox"><pre><code>$albumID = $_POST[&#039;mg&#039;];
        if($albumID &gt; 0){
            
            $htmlSource .= &#039;&lt;SCRIPT LANGUAGE=&quot;javascript&quot;&gt;
                            $(function() {
                            $(&quot;#html5_uploader&quot;).pluploadQueue({
                                // General settings
                                runtimes : \&#039;html5\&#039;,
                                url : \&#039;upload.php?mg=&#039;.$albumID.&#039;\&#039;,
                                max_file_size : \&#039;3mb\&#039;,
                                chunk_size : \&#039;1mb\&#039;,
                                unique_names : true,
                                
                                flash_swf_url : \&#039;/plupload/js/plupload.flash.swf\&#039;,

                                filters : [
                                    {title : &quot;Image files&quot;, extensions : &quot;jpg,jpeg,gif,png&quot;}
                                ]
                        
                                // Resize images on clientside if we can
                                //resize : {width : 320, height : 240, quality : 90}
                            });
                        });
                            &lt;/SCRIPT&gt;&#039;;
            $htmlSource .= &#039;&lt;div id=&quot;uploadWrapper&quot; style=&quot;float: left; margin-right: 20px;&quot;&gt;
                                &lt;div id=&quot;html5_uploader&quot; style=&quot;width: 450px; height: 330px;&quot;&gt;You browser doesnt support native upload. Try Firefox 3 or Safari 4.&lt;/div&gt;
                            &lt;/div&gt;
                            &lt;br style=&quot;clear: both&quot; /&gt;&#039;;
        }else{
            $htmlSource .= &#039;&lt;form method=&quot;post&quot; action=&quot;addtosite.php&quot;&gt;
                            &lt;p&gt;Valj undermeny som den ska tillh&amp;ouml;ra: &#039;.$selectBox4.&#039;&lt;/p&gt;
                            &lt;input type=&quot;submit&quot; value=&quot;Nästa &amp;raquo;&quot; /&gt;
                        &lt;/form&gt;&#039;;
        }</code></pre></div><p>Since i have almost no experience at all with PHP and JS, i thought it to be a&nbsp; great challenge.<br />The above code isnt surely the best one around, but it solved a problem and offered me a great deal of&nbsp; fun with PHP/JS/HTML <img src="http://www.plupload.com/punbb/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>If you know another way to do this, please do share a bit of code and explanation with that. <img src="http://www.plupload.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Thanx in advance!</p>]]></summary>
			<author>
				<name><![CDATA[danel]]></name>
				<uri>http://www.plupload.com/punbb/profile.php?id=489</uri>
			</author>
			<updated>2010-08-29T22:44:13Z</updated>
			<id>http://www.plupload.com/punbb/viewtopic.php?id=239&amp;action=new</id>
		</entry>
</feed>
