Yii Framework Forum: XUpload Update - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

XUpload Update Should XUpload update to the new jquery plugin version? Rate Topic: -----

Poll: Should XUpload update to the new jquery plugin version? (73 member(s) have cast votes)

Should XUpload update to the new jquery plugin version?

  1. Voted Yes (73 votes [100.00%] - View)

    Percentage of vote: 100.00%

  2. No (0 votes [0.00%])

    Percentage of vote: 0.00%

Vote Guests cannot vote

#1 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 06 July 2011 - 10:28 AM

The jquery plugin has been updated to a new version, the old wiki for the version this extension uses, has been mostly removed, many documentation and examples were lost, this is sad but not responsability of the extension, the old wiki with the old versione examples has been restored, so I'm opening a discussion, in wheter or not the extension should update to the current plugin version.

Take into account however, that the new jquery plugin does not have a complete wiki yet. mostly missing examples.

This post has been edited by Asgaroth: 06 July 2011 - 11:51 AM

- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 July 2011 - 10:54 AM

Of course.
I believe the new version fixes a lot of issues? :)
"Less noise - more signal"
0

#3 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 06 July 2011 - 11:50 AM

View Postjacmoe, on 06 July 2011 - 10:54 AM, said:

Of course.
I believe the new version fixes a lot of issues? :)


I haven't tried the new version yet, nor could I found a list of either new features or bug fixes, so I don't have a word here.

But I can tell that the lack of examples in the new version is a failure, many of the how-tos in the old version wiki are very common and used very often, forcing users to use the new version without this examples may lead into rejection of the extension for "lack of documentation".

What I propose ,is to keep the current version, until examples and extended documentation for the new version is added, time when it'd be more correct to upload the extension version.

But the decition is up to the community.
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#4 User is offline   Sergey Tsivin 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 20-January 11

Posted 05 August 2011 - 06:41 AM

View PostAsgaroth, on 06 July 2011 - 11:50 AM, said:

What I propose ,is to keep the current version, until examples and extended documentation for the new version is added, time when it'd be more correct to upload the extension version.


Looks like documentation and examples have been added for new version

But I couldn't find the changelog or whatsoever to see what new version has to offer. Perhaps it has better browser compatibility... juts a guess.
0

#5 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 05 August 2011 - 08:08 AM

View PostSergey Tsivin, on 05 August 2011 - 06:41 AM, said:

Looks like documentation and examples have been added for new version

But I couldn't find the changelog or whatsoever to see what new version has to offer. Perhaps it has better browser compatibility... juts a guess.


Indeed there is a new plugin version, the version the extension currently uses its V4, I havent updated the extension yet, because i think the new version of the plugin lacks documentation, like the how tos avaliable for V4 thats why I havent updated yet. because people often come with this common issues, and without a wiki, i would have to provide examples or write the wiki myself, but im not the author of the plugin, and I dont use it often, so I dont really have the ability to write such a documentation. so I better stick to the V4 until the new version has better docs.
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#6 User is offline   freedom55 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 14-June 11

Posted 26 August 2011 - 12:11 AM

I am interested in trying to make a new version of this extension using the latest version Jquery upload.

This will be my first extension. I'm not really sure where to start.. it's a bit over my head at this stage. Lots to learn still.

Can anyone recommend some resources that I should read to be able to do this?
0

#7 User is offline   Ashok Poudel 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 02-March 12

Posted 04 March 2012 - 06:30 AM

is there any way of file type filtering in this plugin?
0

#8 User is offline   Sampa 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 173
  • Joined: 18-December 11
  • Location:Stockholm,Sweden

Posted 06 March 2012 - 07:59 PM

Yes I think you should update it:) I enjoy this extention so much :)


View PostAshok Poudel, on 04 March 2012 - 06:30 AM, said:

is there any way of file type filtering in this plugin?


Yes ofc read the plugin api.
0

#9 User is offline   z_forum 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 14-February 11

Posted 13 March 2012 - 10:46 AM

I vote for an update as well. I would be willing to help some, but I haven't created an extension before.

View PostAshok Poudel, on 04 March 2012 - 06:30 AM, said:

is there any way of file type filtering in this plugin?


I don't think the extension can do this with the version of file upload contained in the assets folder. I think you will have to update to a later version in the V4 branch where "acceptFileTypes" is available as an option, or write your own callback function which tests the file type. If I'm wrong could someone please post how they did it. Thanks in advance.
0

#10 User is offline   Riyas 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 29-October 11
  • Location:India

Posted 14 March 2012 - 07:05 AM

hello.
i have a problem using xupload insde a Cjuidialog box.

here is my ajaxLink for dialog box

<?php
echo CHtml::ajaxLink('Upload',array('upload/index'),array(
                  'success'=>'js:function(data){
                 $("#uploadFile").dialog("open");
                   document.getElementById("upload").innerHTML=data;
				  }'),array('id' => 'ty'.uniqid()));
                       
     $this->beginWidget('zii.widgets.jui.CJuiDialog',array(
                  'id'=>'uploadFile',
                  'options'=>array(
                    'title'=>'Upload files',
                    'autoOpen'=>false,
                    'modal'=>'true',
                    'width'=>'auto',
                    'height'=>'auto',
                ),
                ));
         echo "<div id='upload'></div>";
	  $this->endWidget('zii.widgets.jui.CJuiDialog');
                    ?>   

my action upload/index is
public function actionIndex()
	{
		$model = new XUploadForm;
		$this->render('multiple', array(
			'model' => $model,
		));
	}

this is my rendering view multiple
<?php
$this->widget('ext.xupload.XUploadWidget', array(
					'url' => Yii::app()->createUrl("site/upload", array("parent_id" => 1)),
                    'model' => $model,
                    'attribute' => 'file',
					'multiple' => true,
));
?>
.
this is not working.
i can render the view and when i select the multiple/single file there is no uploading status there.but if the mouse is placed over the upload button,then show all the names of the selected files.
please help.
0

#11 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 14 March 2012 - 09:28 AM

I beleave you should be using renderPartialinstead of render in your upload/index action (since you dont need the layout inside the CJuiDialog).

Also you need to call that with processOutput enabled, so that the javascript required for XUpload is correctly sent and executed:
public function actionIndex()
        {
                $model = new XUploadForm;
                renderPartial('multiple', array(
                        'model' => $model,
                ), false, true);
        }


Note: Untested
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#12 User is offline   MAHESH.E.U 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 03-September 11
  • Location:Kerala India

Posted 16 March 2012 - 12:10 AM

Hi,
I am using your xupload extension. Since i am doing an urgent project. i am seeking for immediate help.
I need to add keywords to each uploaded file.I am using queue method for this. i integrated text area with the ui.
i just want to know how and where i will get the value of these text boxes at the xuploadaction file;
please help. waiting for your response

faithfully
1

#13 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 16 March 2012 - 09:59 AM

View PostMAHESH.E.U, on 16 March 2012 - 12:10 AM, said:

Hi,
I am using your xupload extension. Since i am doing an urgent project. i am seeking for immediate help.
I need to add keywords to each uploaded file.I am using queue method for this. i integrated text area with the ui.
i just want to know how and where i will get the value of these text boxes at the xuploadaction file;
please help. waiting for your response

faithfully


https://github.com/b...al-Form-Data-v4
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#14 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 01 April 2012 - 07:11 PM

The extension has been finally updated and moved to GitHub!

XUpload Extension for Yii

Please download and comment, any feedback is apreciated
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#15 User is offline   manuelpm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 21-January 12
  • Location:Guatemala

Posted 14 May 2012 - 11:17 PM

Asgaroth, let me start by saying that this is a great extension!

Now i have a question, i dont know if i havent look very carefully but here is what i ended up doing. I tried to use:
<?php
Yii::import("xupload.models.XUploadForm");
class SiteController extends Controller {

	public function actions() {
		return array(
			'upload' => array(
				'class' => 'xupload.actions.XUploadAction',
				'path' => Yii::app() -> getBasePath() . "/../images/uploads", 
				"publicPath" => Yii::app()->getBaseUrl()."/images/uploads",
				'subfolderVar'=>false, 
			), 
		);
	}

	/**
	 * This is the default 'index' action that is invoked
	 * when an action is not explicitly requested by users.
	 */
	public function actionIndex() {
		// renders the view file 'protected/views/site/index.php'
		// using the default layout 'protected/views/layouts/main.php'
		$model = new XUploadForm;
		$this -> render('index', array('model' => $model, ));
	}

	/**
	 * This is the action to handle external exceptions.
	 */
	public function actionError() {
		if ($error = Yii::app() -> errorHandler -> error) {
			if (Yii::app() -> request -> isAjaxRequest)
				echo $error['message'];
			else
				$this -> render('error', $error);
		}
	}

}



but it didnt work for me (the subfolderVar) it kept uploading to the path with ("mdY") name, now what i did was comment out this part of xuploadaction.php:

if ($this -> subfolderVar !== null) {
            $this -> _subfolder = Yii::app() -> request -> getQuery($this -> subfolderVar, date("mdY"));
        } else if ($this -> subfolderVar !== false) {
            $this -> _subfolder = date("mdY");
        }


I dont like it but it worked, any idea why is not working?

By the way, this is out of the box, the demo you have. Not in my project.

This post has been edited by manuelpm: 14 May 2012 - 11:18 PM

0

#16 User is offline   Asgaroth 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 371
  • Joined: 17-July 09
  • Location:Bogota, Colombia

Posted 15 May 2012 - 02:46 PM

manuelpm, Try this


if ($this -> subfolderVar !== null && $this -> subfolderVar !== false) {
            $this -> _subfolder = Yii::app() -> request -> getQuery($this -> subfolderVar, date("mdY"));
        } else if ($this -> subfolderVar === null) {
            $this -> _subfolder = date("mdY");
        }

- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.



- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
0

#17 User is offline   manuelpm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 21-January 12
  • Location:Guatemala

Posted 15 May 2012 - 03:46 PM

Asgaroth, Thanks for your reply! It is working now, I just have to make the onComplete call work and everything will be just fine.

Thx again for a great extension.
0

#18 User is offline   waterloomatt 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 545
  • Joined: 09-April 10

Posted 23 June 2012 - 01:50 PM

Followed your instructions - works like a treat! Thanks
0

#19 User is offline   rizaarsyi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 22-July 12

Posted 11 September 2012 - 01:41 AM

hi, i'm using your xupload extension. this extension is works great, my question is how to disable the jquery ui css? the jui css always loaded. thanks
0

#20 User is offline   donbungle 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 12-November 12

Posted 05 December 2012 - 09:02 AM

View Postrizaarsyi, on 11 September 2012 - 01:41 AM, said:

hi, i'm using your xupload extension. this extension is works great, my question is how to disable the jquery ui css? the jui css always loaded. thanks


$( ".form-upload .fileinput-button" ).addClass("disabled").find("input[type=file]").attr("disabled", "disabled");

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users