Yii Framework Forum: [Extension] Xupload - Yii Framework Forum

Jump to content

  • (20 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

[Extension] Xupload Rate Topic: ***** 1 Votes

#81 User is offline   Asgaroth 

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

Posted 02 April 2012 - 07:42 PM

View Postdanielm, on 02 April 2012 - 07:34 PM, said:

Same here. "Net" tab is enabled. I can't find a solution either.


Is the included demo working? or is it broken too?
- 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

#82 User is offline   Asgaroth 

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

Posted 02 April 2012 - 09:47 PM

View PostAsgaroth, on 02 April 2012 - 07:42 PM, said:

Is the included demo working? or is it broken too?


I have fixed the problem, it wasen't including the Templates plugin, which is used to render the upload/download listings.

Hopefully the issue has been solved in v0.3a, please donwload and try again. let me know if you encounter any more issues.

Thanks for you feedback :)
- 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

#83 User is offline   danielm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-February 10

Posted 03 April 2012 - 03:43 AM

Works like a charm! Thanks for your effort!
0

#84 User is offline   devnegikec 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 05-March 12
  • Location:Bangalore

Posted 13 April 2012 - 04:49 AM

This extension works great, Thanks a lot.

Can you please tell me how can I define a "Delete" controller action, so when deleting the file form directory, I can also remove it from database.
0

#85 User is offline   cyn 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 18-April 12

Posted 18 April 2012 - 06:44 PM

HI!
I added the widget, I can see but the form has no styles or images on buttons, anyone know how I can fix it?
0

#86 User is offline   Asgaroth 

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

Posted 18 April 2012 - 06:57 PM

View Postcyn, on 18 April 2012 - 06:44 PM, said:

HI!
I added the widget, I can see but the form has no styles or images on buttons, anyone know how I can fix it?



You add styles by including the Bootstrap files (which are out of the scope of the extension)
<!-- Bootstrap CSS Toolkit styles -->
<link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap.min.css">


You can also use the wonderful bootstrap extension by Chris83
- 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

#87 User is offline   Sampa 

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

Posted 26 April 2012 - 11:49 AM

View PostAsgaroth, on 02 April 2012 - 09:47 PM, said:

I have fixed the problem, it wasen't including the Templates plugin, which is used to render the upload/download listings.

Hopefully the issue has been solved in v0.3a, please donwload and try again. let me know if you encounter any more issues.

Thanks for you feedback :)


I'm really late here haha, but I had a time off from developement. I just started and remembered this problem, I never solved it you see. Lurked thrue this thread and yes, you fixed it! woho! :D

Thx!!
0

#88 User is offline   okiem 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 27-April 12

Posted 27 April 2012 - 03:09 AM

There seems to be a bug in XUploadAction init() method. When I set subfolderVar to false the subfolder still gets created because the conditional looks like this:
if ($this -> subfolderVar !== null) {
 $this -> _subfolder = Yii::app() -> request -> getQuery($this -> subfolderVar, date("mdY"));
} else if ($this -> subfolderVar !== false) {
 $this -> _subfolder = date("mdY");
}


That means when subfolderVar is set to false, the condition subfolderVar !== null equates to true and a subfolder still gets made

The fix should be:

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

0

#89 User is offline   roXia 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 27-April 12

Posted 27 April 2012 - 05:21 PM

I am new in PHP and Yii and I have followed all the setup instructions
I got an error that says "Undefined variable: model"
Can you help me, please?
Thank you very much
0

#90 User is offline   siwen66 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 27-April 12

Posted 27 April 2012 - 07:48 PM

Thank you for this nice ext.
I am newbie to Yii and this ext.
How can I auto-populating the Widget with the contents of a directory which user just uploaded?
Now I can upload/download files no problem at all. But after I refresh or open an new window, all files shows in the Widget are gone. The files are still in directory.

I can get all files name,type,size and directory which I want to show in Xupload.php. Just don't know how to show this to Download(widget) page.
Thank you for your help.

Regards,
0

#91 User is offline   jiaming 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 262
  • Joined: 10-April 12

Posted 27 April 2012 - 08:36 PM

Why can't I add it to the _form...?

Each time I put it in... it will lose the ability to upload anything....

Any ideas..?
0

#92 User is offline   siwen66 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 27-April 12

Posted 27 April 2012 - 08:53 PM

View Postjiaming, on 27 April 2012 - 08:36 PM, said:

Why can't I add it to the _form...?

Each time I put it in... it will lose the ability to upload anything....

Any ideas..?

I think you should put into form.php(view).
0

#93 User is offline   jiaming 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 262
  • Joined: 10-April 12

Posted 27 April 2012 - 09:39 PM

View Postsiwen66, on 27 April 2012 - 08:53 PM, said:

I think you should put into form.php(view).


there are only _form.php...
not form.php.... in my view..

-.-

Thanks for your help!
0

#94 User is offline   Asgaroth 

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

Posted 28 April 2012 - 03:19 PM

View Postjiaming, on 27 April 2012 - 09:39 PM, said:

there are only _form.php...
not form.php.... in my view..

-.-

Thanks for your help!


The Widget creates its own form tag, since the default Yii CRUD _form.php has its own FORM tag, you cannot nest another form within
- 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

#95 User is offline   jiaming 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 262
  • Joined: 10-April 12

Posted 28 April 2012 - 05:39 PM

View PostAsgaroth, on 28 April 2012 - 03:19 PM, said:

The Widget creates its own form tag, since the default Yii CRUD _form.php has its own FORM tag, you cannot nest another form within


That is the problem.. What I want to do is: after the user to upload the file, I don't want to move it to my folder and save the path to the database immediately, i want to do that after the user click the "_form" 's save button. Is that possible?
0

#96 User is offline   Asgaroth 

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

Posted 28 April 2012 - 05:57 PM

View Postjiaming, on 28 April 2012 - 05:39 PM, said:

That is the problem.. What I want to do is: after the user to upload the file, I don't want to move it to my folder and save the path to the database immediately, i want to do that after the user click the "_form" 's save button. Is that possible?


Don't save them then, upload them to a temporary folder, and keep the paths in memory (session for example). save them only after the other form has been submitted and move the files to the final folder, have a cron empty the files in the temporary folder ever 24 hours or so, depending on your necessity.

Or you can have your _form start the upload or send the other form's data

https://github.com/b...ional-Form-Data

Take a look at the various wikies

https://github.com/b...ile-Upload/wiki
- 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

#97 User is offline   siwen66 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 27-April 12

Posted 28 April 2012 - 06:10 PM

asgaroth,
could you provide some suggestions on auto populating? There is one example on jQuery file upload document page, but I am not very understand.

regard,
0

#98 User is offline   Asgaroth 

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

Posted 29 April 2012 - 02:45 PM

View Postsiwen66, on 28 April 2012 - 06:10 PM, said:

asgaroth,
could you provide some suggestions on auto populating? There is one example on jQuery file upload document page, but I am not very understand.

regard,


I might be miss understanding. but why would you want to auto-populate a file upload widget, with already uploaded files?
- 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

#99 User is offline   siwen66 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 27-April 12

Posted 29 April 2012 - 03:35 PM

just want to show user the files they have uploaded after user click around and give them a chance to remove files

regards,
0

#100 User is offline   Asgaroth 

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

Posted 29 April 2012 - 03:44 PM

View Postsiwen66, on 29 April 2012 - 03:35 PM, said:

just want to show user the files they have uploaded after user click around and give them a chance to remove files

regards,


Well thats something you can do without the Widget, the widget is for uploading files, you can delete them after you have uploaded them using the widget. but not after page reload.
- 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

Share this topic:


  • (20 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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