Hi Joffrey,

thanks for your answer. I had this line already in my code and the event
is fired after each selection of a new file. The script triggers
form.submit() but the form submits no file data to the server script
after the first (successfull) submit. Instead i get an empty $_FILES
array in my PHP script.

Cheers, Oliver


Am 23.08.2010 10:32, schrieb Joffrey Fuhrer - NOVLOG:
> On 22/08/2010 17:16, Oliver Friedrich wrote:
>> Hi,
>>
>> i have tried the upload widget (0.3 and trunk) and there is the problem,
>> that i can use it only to upload one time. If i try to upload a second
>> file there is not data in the upload.
>>
>> My frontend is Firefox 3.6.8 (Linux, 32bit) and on the backend PHP 5.
>>
>> Is this a general problem with a file upload form or a bug of the
>> UploadWidget? Or perhaps in my code? Is it needed to reset the form
>> before selecting a new file with a uploadwidget.UploadButton and submit
>> the form?
>>
>> TIA,
>> Oliver
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>    
> Hi Oliver,
> 
> We've started using the UploadWidget 0.2 here, but I guess the same goes 
> for
> your version :
> The upload event is fired in the provided examples when the value of the
> UploadField is modified (event "changeFieldValue").
> This is why you should reset the field upon server response, so that the
> next time you select a file (even if it is the same filename as before) the
> event is fired again.
> 
>          /* ... */
> 
>          this.form.addListener("completed", this._onReception, this);
> 
>          /* ... */
> 
>          _onReception : function() {
>              this.uploadField.setFieldValue('');
>          },
> 
>          /* ... */
> 
> 
> Hope this helps.
> 


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to