<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for AM05.com</title>
	<atom:link href="http://www.am05.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.am05.com</link>
	<description>The Internet and Me</description>
	<lastBuildDate>Sun, 30 Oct 2011 15:59:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by Joost</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-171</link>
		<dc:creator>Joost</dc:creator>
		<pubDate>Sun, 30 Oct 2011 15:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-171</guid>
		<description>Do you have plans to make this work on CakePHP 2?</description>
		<content:encoded><![CDATA[<p>Do you have plans to make this work on CakePHP 2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by Brian</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-170</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sun, 02 Oct 2011 13:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-170</guid>
		<description>I must be doing something wrong, running the test after some tweaks I get 100% complete. File is nowhere to be found. Running some extra debug
&lt;pre&gt;
2011-10-02 14:19:18 Debug: initializing cuploadify component...
2011-10-02 14:19:18 Debug: ------data------
2011-10-02 14:19:18 Debug: 
2011-10-02 14:19:18 Debug: $_FILES EMPTY: 1
2011-10-02 14:19:18 Debug: Array
(
    [script] =&gt; /mrlink/cuploadify/tests/upload
    [folder] =&gt; /mrlink/files
    [buttonText] =&gt; ADD FILE
    [auto] =&gt; 1
    [multi] =&gt; 1
    [uploader] =&gt; /mrlink/cuploadify/files/uploadify.swf
    [cancelImg] =&gt; /mrlink/cuploadify/img/cancel.png
)
&lt;/pre&gt;

$_FILES is empty?</description>
		<content:encoded><![CDATA[<p>I must be doing something wrong, running the test after some tweaks I get 100% complete. File is nowhere to be found. Running some extra debug</p>
<pre>
2011-10-02 14:19:18 Debug: initializing cuploadify component...
2011-10-02 14:19:18 Debug: ------data------
2011-10-02 14:19:18 Debug:
2011-10-02 14:19:18 Debug: $_FILES EMPTY: 1
2011-10-02 14:19:18 Debug: Array
(
    [script] =&gt; /mrlink/cuploadify/tests/upload
    [folder] =&gt; /mrlink/files
    [buttonText] =&gt; ADD FILE
    [auto] =&gt; 1
    [multi] =&gt; 1
    [uploader] =&gt; /mrlink/cuploadify/files/uploadify.swf
    [cancelImg] =&gt; /mrlink/cuploadify/img/cancel.png
)
</pre>
<p>$_FILES is empty?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by BenJsno</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-169</link>
		<dc:creator>BenJsno</dc:creator>
		<pubDate>Wed, 21 Sep 2011 10:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-169</guid>
		<description>I have the same error.
In local all works fine but on the distant server, the upload don&#039;t start and gives me an HTTP 302 error.
Can you share your solution, because i use Auth component too, it&#039;s maybe the problem.
Thanks</description>
		<content:encoded><![CDATA[<p>I have the same error.<br />
In local all works fine but on the distant server, the upload don&#8217;t start and gives me an HTTP 302 error.<br />
Can you share your solution, because i use Auth component too, it&#8217;s maybe the problem.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by tg2345</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-168</link>
		<dc:creator>tg2345</dc:creator>
		<pubDate>Tue, 23 Aug 2011 16:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-168</guid>
		<description>Even after setting the session id in both the app_controller, my main controller, and using the component I still got a 302 redirect error.
With some debugging the problem was the Auth component, when it ran the check on the session key (Auth.User is the default) it could not find the data even though the session id had been replaced and had become a valid session (checked using Session-&gt;valid()). 

Solution being, I had to save the username, and password hash in a cookie, or you can save it in the session. To be safe I encrypted them, and set them as named params in the url. When submitted, I would decrypt the data, and use $this-&gt;Auth-&gt;login() function to login the user in the beforeFilter. Then set the session id for shits and giggles, and that was the best way I could devise to solve my problem.</description>
		<content:encoded><![CDATA[<p>Even after setting the session id in both the app_controller, my main controller, and using the component I still got a 302 redirect error.<br />
With some debugging the problem was the Auth component, when it ran the check on the session key (Auth.User is the default) it could not find the data even though the session id had been replaced and had become a valid session (checked using Session-&gt;valid()). </p>
<p>Solution being, I had to save the username, and password hash in a cookie, or you can save it in the session. To be safe I encrypted them, and set them as named params in the url. When submitted, I would decrypt the data, and use $this-&gt;Auth-&gt;login() function to login the user in the beforeFilter. Then set the session id for shits and giggles, and that was the best way I could devise to solve my problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by frndforever</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-167</link>
		<dc:creator>frndforever</dc:creator>
		<pubDate>Thu, 04 Aug 2011 02:49:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-167</guid>
		<description>i tried this one.... it worked thanks a lot man...
another way of doing this is also listed here
http://www.instatutorial.com/using-uploadify-with-cakephp</description>
		<content:encoded><![CDATA[<p>i tried this one&#8230;. it worked thanks a lot man&#8230;<br />
another way of doing this is also listed here<br />
<a href="http://www.instatutorial.com/using-uploadify-with-cakephp" rel="nofollow">http://www.instatutorial.com/using-uploadify-with-cakephp</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by Nick</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-166</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 03 Aug 2011 23:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-166</guid>
		<description>Very cool plugin! Thank you for sharing! Something I noticed, though, is that if the target file already exists, it is overwritten. I think there should be an option for the &quot;upload&quot; method called &quot;overwrite&quot;. It would be a boolean. If it was set to &quot;true&quot;, the file would be overwritten, which is the current behavior. If it was set to &quot;false&quot;, the filename would have a &quot;2&quot; put at the end. If that file exists as well, the &quot;2&quot; would be changed to a &quot;3&quot;. It would keep checking until it finds that the file doesn&#039;t exist.</description>
		<content:encoded><![CDATA[<p>Very cool plugin! Thank you for sharing! Something I noticed, though, is that if the target file already exists, it is overwritten. I think there should be an option for the &#8220;upload&#8221; method called &#8220;overwrite&#8221;. It would be a boolean. If it was set to &#8220;true&#8221;, the file would be overwritten, which is the current behavior. If it was set to &#8220;false&#8221;, the filename would have a &#8220;2&#8243; put at the end. If that file exists as well, the &#8220;2&#8243; would be changed to a &#8220;3&#8243;. It would keep checking until it finds that the file doesn&#8217;t exist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by Jason Galuten</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-165</link>
		<dc:creator>Jason Galuten</dc:creator>
		<pubDate>Fri, 10 Jun 2011 21:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-165</guid>
		<description>I am getting the HTTP Error as well. I could tell from the log that the initialize method in the cuploadify component is not getting very far. I assumed that the line: &lt;code&gt;if (isset($_REQUEST[&quot;session_id&quot;])) {&lt;/code&gt; is evaluating to false. So I tried inserting this line before it: &lt;code&gt;debug($_REQUEST);&lt;/code&gt; and what I get is:
&lt;code&gt;
Array
(
    [CAKEPHP] =&gt; 2ab485b2fdeeedc64b3fed550e449644
)
&lt;/code&gt;

So, I&#039;m trying to dig around some more and try some things, but not sure where it&#039;s going wrong. Any help would be much appreciated. I am using Cake v1.3.9

Thanks,
Jason</description>
		<content:encoded><![CDATA[<p>I am getting the HTTP Error as well. I could tell from the log that the initialize method in the cuploadify component is not getting very far. I assumed that the line: <code>if (isset($_REQUEST["session_id"])) {</code> is evaluating to false. So I tried inserting this line before it: <code>debug($_REQUEST);</code> and what I get is:<br />
<code><br />
Array<br />
(<br />
    [CAKEPHP] =&gt; 2ab485b2fdeeedc64b3fed550e449644<br />
)<br />
</code></p>
<p>So, I&#8217;m trying to dig around some more and try some things, but not sure where it&#8217;s going wrong. Any help would be much appreciated. I am using Cake v1.3.9</p>
<p>Thanks,<br />
Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by Keith</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-164</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Tue, 17 May 2011 13:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-164</guid>
		<description>For those who are having a problem with the files actually uploading to the specified folder defined in upload.ctp, here&#039;s what happened to me.  Locally when I had:

 &quot;folder&quot; =&gt; &quot;/files&quot; 

the files would go to the &quot;files&quot; directory off my document root directory not the cake&#039;s webroot directory.  However, when I uploaded the code to my server the files were not in the &quot;/files&quot; directory.  After pulling out my hair I added a slash at the end of the directory: 

&quot;folder&quot; =&gt; &quot;/files/&quot;

and the files were now there.</description>
		<content:encoded><![CDATA[<p>For those who are having a problem with the files actually uploading to the specified folder defined in upload.ctp, here&#8217;s what happened to me.  Locally when I had:</p>
<p> &#8220;folder&#8221; =&gt; &#8220;/files&#8221; </p>
<p>the files would go to the &#8220;files&#8221; directory off my document root directory not the cake&#8217;s webroot directory.  However, when I uploaded the code to my server the files were not in the &#8220;/files&#8221; directory.  After pulling out my hair I added a slash at the end of the directory: </p>
<p>&#8220;folder&#8221; =&gt; &#8220;/files/&#8221;</p>
<p>and the files were now there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by Keith</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-163</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Mon, 16 May 2011 11:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-163</guid>
		<description>Entharion, can you give more details on how you were able to save the filename to the database?  I have it to the point where the files are copying fine and the ALERT displays based on your code.

I&#039;m want to save the filename to the database as well, so I will to call the controller like &quot;TargetTypesController&quot; pass it the filename and save it to the database in the controller or should it be done in the component?

Thank you in the advance.</description>
		<content:encoded><![CDATA[<p>Entharion, can you give more details on how you were able to save the filename to the database?  I have it to the point where the files are copying fine and the ALERT displays based on your code.</p>
<p>I&#8217;m want to save the filename to the database as well, so I will to call the controller like &#8220;TargetTypesController&#8221; pass it the filename and save it to the database in the controller or should it be done in the component?</p>
<p>Thank you in the advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cuploadify: The CakePHP plugin for Uploadify by Gary</title>
		<link>http://www.am05.com/2011/01/06/using-uploadify-in-cakephp/#comment-162</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Sun, 08 May 2011 12:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.am05.com/?p=53#comment-162</guid>
		<description>One thing that wasn&#039;t really clear to me was the the session management part. If you find that you are losing the sessions take note of two things. If you&#039;re not using the cuploadify component ensure you put this code in the app_controller. It didn&#039;t work for me in the beforeFilter of the controller I was working in.

&lt;pre lang=&quot;php&quot;&gt;
// this is not necessary if you&#039;re using the cuploadify component
if (isset($_REQUEST[&quot;session_id&quot;])) {
    $session_id = $_REQUEST[&quot;session_id&quot;];
    $this-&gt;Session-&gt;id($session_id);
}&lt;/pre&gt;

I actually did it like this to lock a couple of things down to just the action I needed it for:

&lt;pre lang=&quot;php&quot;&gt;
if (isset($_REQUEST[&quot;session_id&quot;]) &amp;&amp; $this-&gt;action == &quot;add&quot; &amp;&amp; $this-&gt;params[&#039;controller&#039;] == &#039;images&#039;) {
   $session_id = $_REQUEST[&quot;session_id&quot;];
   $this-&gt;Session-&gt;id($session_id);
}
&lt;/pre&gt;

Also, as pointed out in the comments earlier but to sum some things up ensure you change this parameter. I had already wrestled with this on a previous project and it&#039;s a toughy if you don&#039;t know what&#039;s happening 

&lt;pre lang=&quot;php&quot;&gt;
Configure::write(&#039;Session.checkAgent&#039;, false);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>One thing that wasn&#8217;t really clear to me was the the session management part. If you find that you are losing the sessions take note of two things. If you&#8217;re not using the cuploadify component ensure you put this code in the app_controller. It didn&#8217;t work for me in the beforeFilter of the controller I was working in.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// this is not necessary if you're using the cuploadify component</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;session_id&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$session_id</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;session_id&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>Session<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>id<span style="color: #009900;">&#40;</span><span style="color: #000088;">$session_id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>I actually did it like this to lock a couple of things down to just the action I needed it for:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;session_id&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>action <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;add&quot;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>params<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'controller'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'images'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000088;">$session_id</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;session_id&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>Session<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>id<span style="color: #009900;">&#40;</span><span style="color: #000088;">$session_id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Also, as pointed out in the comments earlier but to sum some things up ensure you change this parameter. I had already wrestled with this on a previous project and it&#8217;s a toughy if you don&#8217;t know what&#8217;s happening</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Configure<span style="color: #339933;">::</span><span style="color: #004000;">write</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Session.checkAgent'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
</channel>
</rss>

