tag to work?
Thanks,
Amit.
-- Forwarded message --
From: Martin Gainty [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Date: Wed, 12 Dec 2007 21:59:17 -0500
Subject: Re: Struts 2, file tag, accept attribute not working?
you can hook the submit event to JS
Hi Anton,
Were you able to finally get it to work?
I am using 2.0.9 and accept just doens't seem to be doing anything.
Regards,
Amit.
Re: Struts 2, file tag, accept attribute not working?
Anton Pussep
Sat, 03 Nov 2007 10:09:23 -0800
Modifying FileUploadInterceptor or settings its parameters
seem to be doing anything.
Regards,
Amit.
Re: Struts 2, file tag, accept attribute not working?
Anton Pussep
Sat, 03 Nov 2007 10:09:23 -0800
Modifying FileUploadInterceptor or settings its parameters in struts.xml
is not a proper solution since I have two s:file fields in my form and
both
: Wednesday, December 12, 2007 5:48 AM
Subject: Re: Struts 2, file tag, accept attribute not working?
Hi Anton,
Were you able to finally get it to work?
I am using 2.0.9 and accept just doens't seem to be doing anything.
Regards,
Amit.
Re: Struts 2, file tag, accept attribute not working
--- Martin Gainty [EMAIL PROTECTED] wrote:
you can hook the submit event to JS function and then test the content type
before submitting
head
script language=JavaScript type=text/javascript
function doSubmit()
{
if(%{uploadContentType}%=='text/xml')
How does JavaScript know the content
Mailing List user@struts.apache.org
Sent: Friday, November 02, 2007 6:03 AM
Subject: Struts 2, file tag, accept attribute not working?
Hello,
I am using the following tag for uploading text files:
s:file name=myDoc accept=text/plain /
I expected it to recognise wrong content types
- Original Message -
From: Anton Pussep [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, November 02, 2007 12:03 PM
Subject: Re: Struts 2, file tag, accept attribute not working?
There is no s:head tag, since I am not using Ajax. Thus it should
Hello,
I am using the following tag for uploading text files:
s:file name=myDoc accept=text/plain /
I expected it to recognise wrong content types, but it accepts any files
I upload. What might be the problem here?
I tried this with Struts 2.0.9 and 2.0.11.
Best,
Anton
Hi Anton
which theme is specified in your s:head tag?
Martin-
- Original Message -
From: Anton Pussep [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, November 02, 2007 6:03 AM
Subject: Struts 2, file tag, accept attribute not working?
Hello,
I
@struts.apache.org
Sent: Friday, November 02, 2007 6:03 AM
Subject: Struts 2, file tag, accept attribute not working?
Hello,
I am using the following tag for uploading text files:
s:file name=myDoc accept=text/plain /
I expected it to recognise wrong content types, but it accepts any
10 matches
Mail list logo