How to restrict size of file using upload controlcontrol in opsxforms(I need to allow size of file should be less than 1.5 MB)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to restrict size of file using upload controlcontrol in opsxforms(I need to allow size of file should be less than 1.5 MB)

Laxmi Narayana-3
Hi,
 
How to restrict size of file using upload control in ops xforms(I need to allow size of file should be less than 1.5 MB).
How to keep validation for this in ops xforms.
 
Please help me.
 
Regards,
Laxmi Narayana.

 





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

re: How to restrict size of file using upload controlcontrol in opsxforms(I need to allow size of file should be less than 1.5 MB)

richhl

----- El siguiente mensaje original  -----
De: Laxmi Narayana <[hidden email]>
Para: [hidden email]
Asunto: [ops-users] How to restrict size of file using
upload controlcontrol in opsxforms(I need to allow size of
file should be less than 1.5 MB)
Fecha: Thu, 2 Jul 2009 16:30:25 +0530

>Hi,
>
>How to restrict size of file using upload control in ops
>xforms(I need to allow size of file should be less than 1.5
>MB).

  <bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
    <!-- one of the properties available; the maximum file
size in bytes -->
    <property name="maxUploadSize" value="1500000"/>
  </bean>

this in your application spring context.

greetings

rich


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: re: How to restrict size of file using upload controlcontrol in opsxforms(I need to allow size of file should be less than 1.5 MB)

Laxmi Narayana-3
Hi All,
I changed max-upload-size to 2 MB in properties file. 
<property as="xs:integer" processor-name="oxf:request" name="max-upload-size" value="2000000"/>
When i try to upload more than 2MB file, it shows error  as below(find attachment also):
 the request was rejected because its size (2181353) exceeds the configured maximum (2000000).
Instead of that Can I give our own popup?How it is.
Please help me.
On Thu, Jul 2, 2009 at 4:59 PM, <[hidden email]> wrote:

----- El siguiente mensaje original  -----
De: Laxmi Narayana <[hidden email]>
Para: [hidden email]
Asunto: [ops-users] How to restrict size of file using
upload controlcontrol in opsxforms(I need to allow size of
file should be less than 1.5 MB)
Fecha: Thu, 2 Jul 2009 16:30:25 +0530

>Hi,
>
>How to restrict size of file using upload control in ops
>xforms(I need to allow size of file should be less than 1.5
>MB).

 <bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
   <!-- one of the properties available; the maximum file
size in bytes -->
   <property name="maxUploadSize" value="1500000"/>
 </bean>

this in your application spring context.

greetings

rich


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
Please help me,  I am new in XForms, It is urgent in my project!
Thanks in advance,
Laxmi Narayana.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

uploadpopup.bmp (863K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: re: How to restrict size of file using upload controlcontrol in opsxforms(I need to allow size of file should be less than 1.5 MB)

Erik Bruchez-3
Laxmi,

You should be able to configure the appearance of this dialog, see:

http://www.orbeon.com/ops/doc/reference-error-pipeline

-Erik

On Tue, Jul 28, 2009 at 2:53 AM, Laxmi Narayana<[hidden email]> wrote:

> Hi All,
> I changed max-upload-size to 2 MB in properties file.
> <property as="xs:integer" processor-name="oxf:request"
> name="max-upload-size" value="2000000"/>
> When i try to upload more than 2MB file, it shows error  as below(find
> attachment also):
>  the request was rejected because its size (2181353) exceeds the configured
> maximum (2000000).
> Instead of that Can I give our own popup?How it is.
> Please help me.
> On Thu, Jul 2, 2009 at 4:59 PM, <[hidden email]> wrote:
>>
>> ----- El siguiente mensaje original  -----
>> De: Laxmi Narayana <[hidden email]>
>> Para: [hidden email]
>> Asunto: [ops-users] How to restrict size of file using
>> upload controlcontrol in opsxforms(I need to allow size of
>> file should be less than 1.5 MB)
>> Fecha: Thu, 2 Jul 2009 16:30:25 +0530
>>
>> >Hi,
>> >
>> >How to restrict size of file using upload control in ops
>> >xforms(I need to allow size of file should be less than 1.5
>> >MB).
>>
>>  <bean id="multipartResolver"
>>
>> class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
>>    <!-- one of the properties available; the maximum file
>> size in bytes -->
>>    <property name="maxUploadSize" value="1500000"/>
>>  </bean>
>>
>> this in your application spring context.
>>
>> greetings
>>
>> rich
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
>
> --
> Please help me,  I am new in XForms, It is urgent in my project!
> Thanks in advance,
> Laxmi Narayana.
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws