<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: file upload again</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>kobruleht on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p24737</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p24737</guid>
        	        	<description><![CDATA[<p>ajaxFileupload() uses undocumented jquery handleError() method. HandleError was removed in jquery 1.5 .</p>
<p>So this code does not work anymore. Also this does not post other form fields.</p>
<p>Where to find sample which posts file and other form fields also in submit button is clicked in add or edit&#160;form?</p>
]]></description>
        	        	<pubDate>Mon, 26 Sep 2011 18:27:51 +0300</pubDate>
        </item>
        <item>
        	<title>internetbug256 on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p23709</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p23709</guid>
        	        	<description><![CDATA[<p>Hi Riza</p>
<p>Are you sure that the above code actually works? I tried it using KCfinder and the file uploader appears only when creating the inline form. It appears right on top of the inline form, without asking permission, and it never loads again.</p>
<p>I think I am missing something here, like triggering the uploader too in some other event, but since I am newbie to Jqgrid, I can&#39;t figure it out...</p>
<p>Any help out there? Thanks</p>
<p>Gabriel</p>
]]></description>
        	        	<pubDate>Tue, 21 Jun 2011 00:21:32 +0300</pubDate>
        </item>
        <item>
        	<title>riza_nurhadi on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p21037</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p21037</guid>
        	        	<description><![CDATA[<p>Hello ,</p>
<p>my problem is the same.</p>
<p>i need to upload the file. but at the same time i need file manager.</p>
<p>and it seems like uploading the file using jqGrid is not the solution.</p>
<p>i found 2 solution to upload the file and at the same time using file manager to manage the file.</p>
<p>that is using free plugin</p>
<p>using jqGrid only to save the path to the file.</p>
<ol>
<li>Using KcFinder<cite> </cite><a href="http://kcfinder.sunhater.com/" rel="nofollow" target="_blank">http://kcfinder.sunhater.com/</a></li>
<li>Or Using KFM File Manager <a href="http://kfm.verens.com/" rel="nofollow" target="_blank">http://kfm.verens.com/</a></li>
</ol>
<p>I&#39;m choosing KcFinder because that plugin doesn&#39;t need to create table in dbase. and its preety simple to integrate.</p>
<p>KFM is also a good plugin but i&#39;m not using it because i still don&#39;t know how to handle the security problem in CodeIgniter.</p>
<p>so KcFinder it is. its simple.</p>
<p>this my configuration in colModel</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6828' value='Select Code' data-codeid='sfcode6828' /></p>
<div class='sfcode' id='sfcode6828'>
<p>,{</p>
<p>&#160;&#160;&#160;&#160; name:&#34;file&#34;</p>
<p>&#160;&#160;&#160;&#160; ,index:&#34;file&#34;</p>
<p>&#160;&#160;&#160; ,editable:true</p>
<p>&#160;&#160;&#160; ,editoptions:{</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ,readonly:&#34;true&#34;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ,dataInit:function(element){</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // KCFINDER</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; window.KCFinder = {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;callBack: function(url) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;window.KCFinder = null;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#file&#34;).val(url);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;};<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;window.open(&#34;yourURL/kcfinder/browse.php?type=files&#38;dir=files/public&#34;, &#34;kcfinder_textbox&#34;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#34;status=0, toolbar=0, location=0, menubar=0, directories=0, &#34; +<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#34;resizable=1, scrollbars=0, width=800, height=600&#34;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // KFM</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // window.SetUrl=function(val){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// val=val.replace(/[a-z]*:\/\/[^\/]*/,\&#39;\&#39;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// $(&#34;#file&#34;).val(val);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// };<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// var kfm_url=&#34;yourURL/kfm/&#34;;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;// window.open(kfm_url,&#34;kfm&#34;,&#34;modal,width=600,height=400&#34;);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160; }</p>
<p>}</p>
</div>
<p>With this you can get the "Path to Your File" value and save it into textbox.</p>
<p>KcFinder can use IFRAME to open FileManager. if you can integrate it. please tell me 🙂</p></p>
]]></description>
        	        	<pubDate>Mon, 29 Nov 2010 22:16:59 +0200</pubDate>
        </item>
        <item>
        	<title>tony on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p17683</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p17683</guid>
        	        	<description><![CDATA[<p>HEllo,</p>
<p>I think that this is possible using formatters</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 02 Jun 2010 20:38:01 +0300</pubDate>
        </item>
        <item>
        	<title>Ricardo Montalban on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p17632</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p17632</guid>
        	        	<description><![CDATA[<p>Hi Tony, thank you for the response. It seems that snippet you included might work when the only thing being uploaded is a file and no other fields?</p>
<p>I have a form with a number of text fields as well as a photo, when you click the "edit" button a modal pops up with the various editable fields and a file field (because the photo has edittype: &#39;file&#39;) but the form is not enctype="multipart/form-data" so no image can be uploaded.</p>
<p>What I&#39;m trying to figure out is this:</p>
<p>1. I have a grid that has an image, a name and a caption</p>
<p>2. There is an edit button that, when clicked opens a modal window with a form to edit those three things</p>
<p>3. This form has a file input field and two text fields</p>
<p>4. You select the image, enter the text, hit submit and everything gets uploaded/updated/added.</p>
</p>
<p>Is this just not possible with jqgrid? It seems you can upload a file (using a third-party ajax file upload plugin) or you can handle text fields but you cannot do both in one form with jqgrid. Is this correct?</p>
]]></description>
        	        	<pubDate>Tue, 01 Jun 2010 10:41:30 +0300</pubDate>
        </item>
        <item>
        	<title>tony on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p17575</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p17575</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>here is a little code sniplet which works ok in my app using the phpletter plugin</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6785' value='Select Code' data-codeid='sfcode6785' /></p>
<div class='sfcode' id='sfcode6785'>
<p>onInitializeForm : function(formid)</p>
<p>{</p>
<p>//These are needed for fileupload plugin<br />$(formid).attr(&#34;method&#34;,&#34;POST&#34;);<br />$(formid).attr(&#34;action&#34;,&#34;&#34;);<br />$(formid).attr(&#34;enctype&#34;,&#34;multipart/form-data&#34;);<br />// Create a button bellow the file field<br />$(&#34;&#60;br/&#62;&#60;button id=&#39;buttonUpload&#39;&#62;Upload&#60;/button&#62;&#34;).insertAfter(&#34;#fileToUpload&#34;,formid);<br />// bind a event<br />$(&#34;#buttonUpload&#34;,formid).click(function(){<br />&#160;&#160; &#160;$.ajaxFileUpload({<br />&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;doajaxfileupload.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;secureuri:false,<br />&#160;&#160; &#160;&#160;&#160; &#160;fileElementId:&#39;fileToUpload&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;dataType: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;success: function (data, status) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; if(typeof(data.error) != &#39;undefined&#39;)<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if(data.error != &#39;&#39;)<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;alert(data.error);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}else{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#34;#fileToUpload&#34;).val(&#34;&#34;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;alert(data.msg);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;error: function (data, status, e)<br />&#160;&#160; &#160;&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;alert(e);<br />&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;});<br />&#160;&#160; &#160;return false;<br />});</p>
<p>}</p>
</p>
</div>
<p>Where "fileToUpload" is a colmodel field defined as edittype &#8211; file</p>
</p>
<p>Hope this helps</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 30 May 2010 12:42:08 +0300</pubDate>
        </item>
        <item>
        	<title>Ricardo Montalban on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p17511</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p17511</guid>
        	        	<description><![CDATA[<p>Hello Tony,</p>
<p>How would you implement using another plugin within jqgrid? I have an edit field that is part of a larger form and I would like to enable image uploading so how would I even begin to integrate something like that phpletter plugin you linked to?</p>
</p>
<p>-Best</p>
<p>RM</p>
]]></description>
        	        	<pubDate>Fri, 28 May 2010 07:26:46 +0300</pubDate>
        </item>
        <item>
        	<title>tony on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6979</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6979</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is not so easy. Instead that we use form jqGrid post data to the server via ajax. As you known file upload via ajax is not possible, we need to make some trick (use hidden iframe) to do this, but I think it is better to use another plugin.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 31 May 2009 11:04:30 +0300</pubDate>
        </item>
        <item>
        	<title>xuding on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6947</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6947</guid>
        	        	<description><![CDATA[<p>But still I think it won&#39;t be very tough to make the modal box to post file out. isn&#39;t it ?</p>
<p>Just need to set the &#60;form&#62; in modal box with correct parameters such as</p>
<p><code>enctype="multipart/form-data", method ="post"</code></p>
<p>and when add/edit is clicked, it posts the file.</p>
<p>correct me if&#160; i am wrong.</p>
</p>
<p>I think it will be a great enhancement if jqgrid is able to handle file upload.</p>
<p>Regards</p>
<p>The-Di-Lab</p></p>
]]></description>
        	        	<pubDate>Thu, 28 May 2009 08:53:56 +0300</pubDate>
        </item>
        <item>
        	<title>xuding on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6946</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6946</guid>
        	        	<description><![CDATA[<p>Okay, I see.</p>
<p>Then I think I have already put up the above plugin with jqgrid 3.4 in my demo</p>
<p>page.</p>
<p><a href="http://www.the-di-lab.com" rel="nofollow" target="_blank">http://www.the-di-lab.com</a></p>
<p>Thanks anyways.</p>
</p>
<p>Regards</p>
<p>The-Di-Lab</p>
]]></description>
        	        	<pubDate>Thu, 28 May 2009 08:44:21 +0300</pubDate>
        </item>
        <item>
        	<title>tony on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6938</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6938</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Yes, the file is not uploaded. As you known uploading a file requiere diffrent approach. I put this in order to be easy use some other plugin like this one:</p>
<p><a href="http://www.phpletter.com/Demo/AjaxFileUpload-Demo/" rel="nofollow" target="_blank"><a href="http://www.phpletter.com/Demo/" rel="nofollow">http://www.phpletter.com/Demo/</a>.....load-Demo/</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 28 May 2009 04:09:58 +0300</pubDate>
        </item>
        <item>
        	<title>xuding on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6932</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6932</guid>
        	        	<description><![CDATA[<p>Hi,Tony</p>
<p>I have tested the edittype: file.</p>
<p>and I found out that it did give me a &#60;input type=file&#62; ,but my doubt is that in it did not post the file from modal box.&#160;</p>
<p>Do I need to set something else except edittype:file, in order to let the modal box post file to the backend ?</p>
</p>
<p>Regards</p>
<p>The-Di-Lab</p>
<p>ps: The-Di-Lab = Xu Ding</p>
]]></description>
        	        	<pubDate>Wed, 27 May 2009 19:53:50 +0300</pubDate>
        </item>
        <item>
        	<title>xuding on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6923</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6923</guid>
        	        	<description><![CDATA[<p>well,well, what to say ?</p>
<p>awsome !</p>
]]></description>
        	        	<pubDate>Wed, 27 May 2009 04:38:28 +0300</pubDate>
        </item>
        <item>
        	<title>tony on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6922</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6922</guid>
        	        	<description><![CDATA[<p>Hello again,</p>
<p>Sorry for this. I really missed this in the docs. Also we have a couple of new editteipes:</p>
<p>Thease types are</p>
<p>button, image and file.</p>
</p>
<p>Sorry again</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 27 May 2009 02:59:37 +0300</pubDate>
        </item>
        <item>
        	<title>tony on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6921</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6921</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you carefully read the changes in 3.5 maybe you will find edittype:&#39;file&#39;&#160; 😉</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 27 May 2009 02:53:59 +0300</pubDate>
        </item>
        <item>
        	<title>xuding on file upload again</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6912</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/file-upload-again#p6912</guid>
        	        	<description><![CDATA[<p>Hi Tony:</p>
<p>I know that many ppl have asked why you are not adding a file upload field into modal box. and you have answered that we can integrate file uploader into jqgrid.</p>
<p>but for me, I still dun understand, why can not you just add &#60;input type=file&#62; into modal box. and it posts a file to the backend.</p>
</p>
<p>Regards</p>
<p>Xu Ding</p>
]]></description>
        	        	<pubDate>Tue, 26 May 2009 22:24:07 +0300</pubDate>
        </item>
</channel>
</rss>