Is the included demo working? or is it broken too?
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
Works like a charm! Thanks for your effort!
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.
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
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!
Thx!!
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");
}
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
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,
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).
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
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
Take a look at the various wikies
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?
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.