Yes, from what I read of the API, you are not reading it correctly. The API
gives you read-only access to the values. From there you can not place that
information back into another field to be submitted to the server. As I
stated, that would be a HUGE security hole and ASAIK it will never be
allowed by standard JavaScript for that reason.

Jim

On Thu, Jan 29, 2009 at 2:27 AM, Florian Giesen <
[email protected]> wrote:

> Hello Jim,
>
> i fear, i have expressed myself ambiguously. I don't want to manipulate the
> values of a file input field. My intention was to upload a (already selected
> by the user) file with qx.io.remote.Request. But as far as i have understood
> the thematic that is not possible because there is no way to access the file
> content with javascript to put the data into the request header (enctype
> "multipart/form-data"). And this is the functionality provided by the new
> FF3 nsIDOMFile API. Please correct me, if i am wrong.
>
> Florian
>
>
> 2009/1/28 Jim Hunter <[email protected]>
>
> I think you misread the spec on this. What you are looking at is a
>> read-only call. You will not be able to turn around and stuff that
>> information into a field and then submit it to the server, so you are back
>> at the same place you are now with all other browsers. JavaScript simply
>> will not allow you to put information into a file field because it is a huge
>> security risk to the user.
>>
>> Jim
>>
>>
>>
>> On Wed, Jan 28, 2009 at 7:10 AM, Florian Giesen <
>> [email protected]> wrote:
>>
>>> Thank you Jim!
>>>
>>> Although this isn't really a good news for me, at least i don't try to
>>> implement something impossible any longer. I did some googleing and found
>>> out, that it is possible to upload files via javascript with the new FF3
>>> nsIDOMFile <https://developer.mozilla.org/en/nsIDOMFile> API. Maybe the
>>> other browsers will implement this in the future too.
>>>
>>> Regards, Florian
>>>
>>>
>>> 2009/1/27 Jim Hunter <[email protected]>
>>>
>>>> Manually setting the values of a upload field is against JavaScript
>>>> rules, it simply can not be done. If you want to upload data to a server 
>>>> you
>>>> have to go through a standard HTML form. There is a contribution to qooxdoo
>>>> that does all that for you 'behind the scenes', I suggest looking into 
>>>> that.
>>>> The way you are trying to do it is never going to work, JavaScript won't 
>>>> let
>>>> you.
>>>>
>>>> Jim
>>>>
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net email is sponsored by:
>>> SourcForge Community
>>> SourceForge wants to tell your story.
>>> http://p.sf.net/sfu/sf-spreadtheword
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to