-
22 Aug 2007 4:18 AM #31
perfect
perfect
I like this upload dialog a lot! Thanx
-
22 Aug 2007 4:36 PM #32
cool nice User eXtension mate
I'm part of the Ext Community
Maintaining: Translations and some Examples
Developing on: ExtJS Python Builder / Gozerbot
Places: Ido.nl.eu.org / My ExtSamples / Trbs on Wiki / IRC
-
22 Aug 2007 4:58 PM #33
noso, damien, trbs thanks for good response
Use the force - read the source.
My ExtJS extensions can be found here: http://max-bazhenov.com/dev/
-
23 Aug 2007 12:25 PM #34
first of all i'd like to say thank you very much.
ive searched for a lot of multifile uplaod dialogs and yours seems to be the best
but i have a problem with it:
after i uploaded a file, the json object is returned and the state of the file that was uploaded turns into succesfully uplaoded (the green thing)
but then the other files in the quee dont start to upload, the "uplaod button" keeps on being the "abort button" and the littel loading gif in the bottom right still shows up
this just changes if i select another entry in the queue manually... but on your demo page everything worked just perfect.
do u have any ideas how i could fix that?
-
23 Aug 2007 12:41 PM #35
Do you have the last version of the UploadDialog? (I think first you should try to download the package again and check if the bug will be still in place). Then post your code here, may be you have something wrong in any of dialogs event handlers (if you have any).
Use the force - read the source.
My ExtJS extensions can be found here: http://max-bazhenov.com/dev/
-
23 Aug 2007 1:01 PM #36
well, i tried it with redownloading the files, but the error is still there.
what code do u mean exactly i should post here?
the onAjaxSuccess ?
-
23 Aug 2007 1:42 PM #37
I'm not a mind reader you know
.
Show me how do you create the dialog, if you have any dialog event handlers, show me the code of handlers...
and I also didn't understand this phrase:
Do you mean that upload starts again if you add another file in the queue? If so and if the previous queue wasn't completly uploaded - means (imo) that you have an exception in one of the dialogs event handlers. Do you use FF with Firebug installed?this just changes if i select another entry in the queue manually...Use the force - read the source.
My ExtJS extensions can be found here: http://max-bazhenov.com/dev/
-
27 Aug 2007 9:18 AM #38
sorry for not answering, but i had no time.
however a mate of mine already fixed it and now its working all fine
-
27 Aug 2007 11:24 AM #39
Was it a bug in UploadDialog? If it was, then please point me where it is.
Use the force - read the source.
My ExtJS extensions can be found here: http://max-bazhenov.com/dev/
-
28 Aug 2007 2:43 PM #40
Hey, nice extension, indeed, keep up the good work.
I have a problem with uploading files tho. The $_FILES variable does not seem to fill with the file name and the other values from the POST? statement.
Do I need to set up anything before using this?
I know that in plain HTML I have to set up a form containing the upload/browse button, form wich look like this:
In my situation I just created a dialog and show it on the screen (as in your example), the dialog seem to access my (php) upload page according to Firebug but it does not POST anything?!<form enctype="multipart/form-data" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>.
upload.js:upload.php:/**
* Copyright(c) 2006-2007, FeyaSoft Inc.
*
* This JS is mainly used to handle action in the list
* and create, edit, delete.
* There includes Search function, paging function etc
* Create/update is using pop-up dialog
* Delete can select multiple line
*/
Ext.onReady(function(){
var dialog = new Ext.ux.UploadDialog.Dialog(null, {
autoCreate: true,
closable: true,
collapsible: false,
draggable: true,
minWidth: 400,
minHeight: 200,
width: 400,
height: 350,
proxyDrag: true,
resizable: true,
constraintoviewport: true,
title: 'File upload queue.',
url: 'upload.php',
reset_on_hide: false,
allow_close_on_upload: true
});
dialog.show('my-dlg');
});
$target_path = "uploads/";
if (!is_dir($target_path .$_SESSION['id_comanda']))
{
if (!@mkdir ($target_path .$_SESSION['id_comanda'])) die ('({"success":false,"error":"Eroare la crearea directorului '.$target_path.$_SESSION[id_comanda].'"})');
}
$target_path .= $_SESSION['id_comanda'].'/';
$nume_fisier = basename($_FILES['uploadedfile']['name']);
$target_path = $target_path . basename($_FILES['uploadedfile']['name']);
//die (basename($_FILES['uploadedfile']['name'])); <- doesn't print anything?!
$_FILES['uploadedfile']['tmp_name'];
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
{
die ('({"success":true})');
}
else
{
die ('({"success":false,"error":"A aparut o eroare, va rugam incercati din nou!"})');
}
Any advices will be appreciated.
Thanks for your time and work


Reply With Quote