Note that there are some explanatory texts on larger screens.

plurals
  1. POuplodify not working in joomla 2.5
    text
    copied!<p>I developing one gallery-component in <strong>joomla2.5</strong> using <a href="http://www.uploadify.com/" rel="nofollow">uplodify</a></p> <p>I have used the following code in view of my_component</p> <pre><code> $session = &amp; JFactory::getSession(); $document = &amp;JFactory::getDocument(); $document-&gt;addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'); $document-&gt;addScript(JURI::root(true).'/administrator/components/com_mycomponent/uplodify/jquery.uploadify-3.1.min.js'); $document-&gt;addStyleSheet(JURI::root(true).'/administrator/components/com_mycomponent/uplodify/uploadify.css'); $UploadHeadJs =' // &lt;![CDATA[ jQuery.noConflict(); jQuery(function() { console.log("load"); jQuery("#model_upload").uploadify({ "swf" : "'.JURI::root(true).'/administrator/components/com_mycomponent/uplodify/uploadify.swf", "uploader" : "index.php", "formData" : {"option" : "com_mycomponent", "controller" : "uploadify","task":"uploadify.upload","'.$session-&gt;getName().'" : "'.$session-&gt;getId().'","cid":"'.$item-&gt;id.'","tmpl":"component"}, "method" : "post", "cancelImg" : "'.JURI::root(true).'/administrator/components/com_mycomponent/uplodify/uploadify-cancel.png", "uploadLimit" : 25, "auto" : true, "buttonText" : "SELECT MODEL", "debug" : true, "fileObjName" : "modelImage", "fileSizeLimit" : "'.ini_get('upload_max_filesize').'B", "fileTypeDesc" : "Only 25 pictures allow(.jpeg,.gif)", "fileTypeExts" : "*.jpeg;*.jpg;*.JPEG;*.JPG;*.GIF;*.gif;*.png;*.PNG", "multi" : true, "queueID" : "queue", "height" : 22, "onUploadError" : function(file, errorCode, errorMsg, errorString) { console.log( errorMsg); }, "onUploadSuccess" : function(file, data, response) { console.log(response); } // Put your options here }); }); //]]&gt;'; $document-&gt;addScriptDeclaration($UploadHeadJs); </code></pre> <p>In default.php contain the following code</p> <pre><code>&lt;input type="file" name="modelUpload" id="model_upload"/&gt; &lt;div id="upload-queue-s" style="background:#CCCCCC"&gt; &lt;div class="inQueu" id="queue"&gt;&lt;/div&gt; &lt;ul class="fileQueu"&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>Uplodfiy is loading properly , now when i start the coding into <strong>controller</strong> and just try to echo something to confirm that requested url is working fine or not and it will redirect me the login page of administrator of joomla</p> <p><strong>so my issue is that why it redirect me the login page , is there issue with session ?? how can i get request form uplodify to joomla controller file ??</strong></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload