<?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 on: Simple Zend_Form File Upload Example</title>
	<atom:link href="http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/</link>
	<description>Developing PHP software in the Real World, by Rob Allen</description>
	<lastBuildDate>Tue, 13 Mar 2012 12:47:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: john</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-65416</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sun, 12 Jun 2011 07:58:31 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-65416</guid>
		<description>Thanks for this wonderful tutorial. =D

BTW, i am new to zend framework.

I tried to save the filename of the uploaded file to database. However, i got an error while setting up the database saying:

Class &#039;Zend_Db_Adapter_Pdo_Mysql&#039; not found.

So i added 

require_once &quot;Zend/Db/Adapter/Pdo/Mysql.php&quot;;

and now it&#039;s working.

I am just wondering do i really have to add this line if i already added the zend library to php include_path? Or i just missed an important configuration/ setup.

Please enlighten me.

Thanks.

P.S. Sorry if this question is kinda silly.</description>
		<content:encoded><![CDATA[<p>Thanks for this wonderful tutorial. =D</p>
<p>BTW, i am new to zend framework.</p>
<p>I tried to save the filename of the uploaded file to database. However, i got an error while setting up the database saying:</p>
<p>Class 'Zend_Db_Adapter_Pdo_Mysql' not found.</p>
<p>So i added </p>
<p>require_once "Zend/Db/Adapter/Pdo/Mysql.php";</p>
<p>and now it's working.</p>
<p>I am just wondering do i really have to add this line if i already added the zend library to php include_path? Or i just missed an important configuration/ setup.</p>
<p>Please enlighten me.</p>
<p>Thanks.</p>
<p>P.S. Sorry if this question is kinda silly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iijimae</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-56688</link>
		<dc:creator>iijimae</dc:creator>
		<pubDate>Wed, 23 Mar 2011 03:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-56688</guid>
		<description>Fatal error: Class &#039;App_Form_Element_File&#039; not found in D:\wamp\www\zf-project\application\forms\UploadForm.php on line 17

May I know how to fix the fatal error above?</description>
		<content:encoded><![CDATA[<p>Fatal error: Class 'App_Form_Element_File' not found in D:\wamp\www\zf-project\application\forms\UploadForm.php on line 17</p>
<p>May I know how to fix the fatal error above?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venkat</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-31954</link>
		<dc:creator>venkat</dc:creator>
		<pubDate>Mon, 15 Mar 2010 11:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-31954</guid>
		<description>iam using zend frame work1.10


public function uploadAction()
{
$up = new Application_Form_Fuldf();
$this-&gt;view-&gt;form = $up;
$a = $up-&gt;getvalues(file1);
if($this-&gt;getRequest()-&gt;isPost()) {
if($up-&gt;isValid($_POST)) {
$adapter = new Zend_File_Transfer_Adapter_Abstract();
$uploadDir = $_SERVER[&#039;DOCUMENT_ROOT&#039;];
$a = $adapter-&gt;setDestination($uploadDir);

}
}
}
/**** this is my code for file upload when ever iam uploading it is uploading to my tmp folder
how to set the destination path to my webserver
thanks in advance</description>
		<content:encoded><![CDATA[<p>iam using zend frame work1.10</p>
<p>public function uploadAction()<br />
{<br />
$up = new Application_Form_Fuldf();<br />
$this-&gt;view-&gt;form = $up;<br />
$a = $up-&gt;getvalues(file1);<br />
if($this-&gt;getRequest()-&gt;isPost()) {<br />
if($up-&gt;isValid($_POST)) {<br />
$adapter = new Zend_File_Transfer_Adapter_Abstract();<br />
$uploadDir = $_SERVER['DOCUMENT_ROOT'];<br />
$a = $adapter-&gt;setDestination($uploadDir);</p>
<p>}<br />
}<br />
}<br />
/**** this is my code for file upload when ever iam uploading it is uploading to my tmp folder<br />
how to set the destination path to my webserver<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benj_em</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-26348</link>
		<dc:creator>Benj_em</dc:creator>
		<pubDate>Tue, 12 May 2009 12:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-26348</guid>
		<description>I can&#039;t find anywhere here that there&#039;s any mention of how to actually save the uploaded file to a directory (or save it&#039;s info to a database). I can get the uploadedData array dump to work but how do I save the file to a directory?</description>
		<content:encoded><![CDATA[<p>I can't find anywhere here that there's any mention of how to actually save the uploaded file to a directory (or save it's info to a database). I can get the uploadedData array dump to work but how do I save the file to a directory?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-23597</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 24 Nov 2008 15:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-23597</guid>
		<description>Hi!

I have a problem with temporary direcotory. When I try to upload a file, I&#039;ve got a message like this: 

&quot;Fatal error: Uncaught exception &#039;Zend_File_Transfer_Exception&#039; with message &#039;Could not determine temp directory&#039; in...&quot;

Does anybody know what this message mean?
David</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I have a problem with temporary direcotory. When I try to upload a file, I've got a message like this: </p>
<p>"Fatal error: Uncaught exception 'Zend_File_Transfer_Exception' with message 'Could not determine temp directory' in..."</p>
<p>Does anybody know what this message mean?<br />
David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-23522</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Fri, 21 Nov 2008 10:01:07 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-23522</guid>
		<description>Miguel, 

The latest version of ZF (1.7) has a robust file transfer component built in. It&#039;s worth looking at.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Miguel, </p>
<p>The latest version of ZF (1.7) has a robust file transfer component built in. It's worth looking at.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-23521</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Fri, 21 Nov 2008 10:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-23521</guid>
		<description>Pola,

I&#039;m pretty sure that the mailing list archives have information on this.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Pola,</p>
<p>I'm pretty sure that the mailing list archives have information on this.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel Melo</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-23452</link>
		<dc:creator>Miguel Melo</dc:creator>
		<pubDate>Sat, 15 Nov 2008 20:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-23452</guid>
		<description>Hi, can anyone tell me how and where do i control the file name ? And assigned the name by a variable ? For example: I have an upload form and i want that the uploaded file stays with the name i&#039;ve given in the a field of the form. Can anyone help me ?</description>
		<content:encoded><![CDATA[<p>Hi, can anyone tell me how and where do i control the file name ? And assigned the name by a variable ? For example: I have an upload form and i want that the uploaded file stays with the name i've given in the a field of the form. Can anyone help me ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pola</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-23436</link>
		<dc:creator>Pola</dc:creator>
		<pubDate>Thu, 13 Nov 2008 22:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-23436</guid>
		<description>Rob, Your tutorial is very good. Do you have screenshot examaples of how to build a zend table using decorators. 

I am trying to build dynamic table with several rows and 3 colums, but the problem i&#039;m facing is it is creating each column in a row . so its like a stair case in a row and the next rows is the same as the 1st row and the colums are like staircase

How to have multiple colums in a row?

Ansy help will be appreciated.

Thanks,</description>
		<content:encoded><![CDATA[<p>Rob, Your tutorial is very good. Do you have screenshot examaples of how to build a zend table using decorators. </p>
<p>I am trying to build dynamic table with several rows and 3 colums, but the problem i'm facing is it is creating each column in a row . so its like a stair case in a row and the next rows is the same as the 1st row and the colums are like staircase</p>
<p>How to have multiple colums in a row?</p>
<p>Ansy help will be appreciated.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexandr</title>
		<link>http://akrabat.com/zend-framework/simple-zend_form-file-upload-example/#comment-22911</link>
		<dc:creator>Alexandr</dc:creator>
		<pubDate>Fri, 12 Sep 2008 13:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=242#comment-22911</guid>
		<description>Hi!

For setting form enctype attribute imho it&#039;s more logical to use:

$this-&gt;setEnctype(&#039;multipart/form-data&#039;);

instead of:

$this-&gt;setAttrib(&#039;enctype&#039;, &#039;multipart/form-data&#039;);</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>For setting form enctype attribute imho it's more logical to use:</p>
<p>$this-&gt;setEnctype('multipart/form-data');</p>
<p>instead of:</p>
<p>$this-&gt;setAttrib('enctype', 'multipart/form-data');</p>
]]></content:encoded>
	</item>
</channel>
</rss>

