Okay, I'm on linux amd64, running Chrome 3.0.198.1 (which I'm pretty
sure is a 32-bit binary). I think I'm up to date on java as well.
Anyhow, if I try to use the showcase upload, I get the same 'File
cannot be empty.' Looking in the logs (pastebinned below), it looks
like it can't figure out the Content-type (could chrome be forgetting
to send it, I have to look up multipart handling, I don't remember
what all should be happening).

http://pastebin.com/m65b8f161

-Wes

On Thu, Aug 20, 2009 at 10:06 AM, Al Sutton<a...@funkyandroid.com> wrote:
> I can reproduce it with the showcase app, but there seem to be limited to 
> uploading certain binary files (I'm running Vista SP2, Chrome 2.0.172.39, Sun 
> JDK 1.6.0_14, Tomcat 6.0.18 and the upload showcase is at 
> http://localhost:8080/struts2-showcase-2.1.6/fileupload/upload.action in case 
> that's the cause of anything).
>
> To reproduce fire up the showcase, point chrome at the Fileupload sample and 
> try uploading the file you can download from 
> http://andappstore.com/AndroidApplications/apps/125845!download (it's OK, my 
> company owns the copyright on that file, so there are no problems with 
> redistribution). I get a "File cannot be empty" error message every time. 
> Other users of the site have reported the same problem with some of their 
> uploads.
>
> If I try it with a small text file everything is OK, and some other files 
> work and some don't, but the file I've given you to download seems to trigger 
> it every time on Chrome yet works fine on Firefox, IE, and Safari.
>
> From what I'm seeing I'm pretty sure it's a Chrome problem, but I expect it's 
> going to be biting other people so if someone has a quick workaround it may 
> be useful to publish it on -users.
>
> Al.
>
>
> --
>
> * Written an Android App? - List it at http://andappstore.com/ *
>
> ======
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
>
> -----Original Message-----
> From: Wes Wannemacher [mailto:w...@wantii.com]
> Sent: 20 August 2009 14:45
> To: Struts Developers List
> Subject: Re: Possible Chrome/s:file interaction problem.
>
> Al,
>
> I recently started running Chrome, but I don't have any apps that use
> s:file. If you have a smallish app, I can try it out if you want to
> email me a zip. Not sure if it makes a difference, but I'm running it
> on linux amd64.
>
> -Wes
>
> On Thu, Aug 20, 2009 at 2:05 AM, Al Sutton<a...@funkyandroid.com> wrote:
>> Has anyone tried Google Chrome with the s:file JSP tag?
>>
>> I've got a form which works with IE, Safari, and Firefox, but fails with 
>> Chrome (the submitted file isn't passed through to the File object in the 
>> action).
>>
>> I'm just wondering if it's something in my form or a wider problem that I 
>> should put a bug in the bug database about.
>>
>> Al.
>>
>> --
>>
>> * Written an Android App? - List it at http://andappstore.com/ *
>>
>> ======
>> Funky Android Limited is registered in England & Wales with the
>> company number  6741909. The registered head office is Kemp House,
>> 152-160 City Road, London,  EC1V 2NX, UK.
>>
>> The views expressed in this email are those of the author and not
>> necessarily those of Funky Android Limited, it's associates, or it's
>> subsidiaries.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
>> For additional commands, e-mail: dev-h...@struts.apache.org
>>
>>
>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
> For additional commands, e-mail: dev-h...@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
> For additional commands, e-mail: dev-h...@struts.apache.org
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to