Re: RE: Restrict file-size for xforms:upload

Posted by AH Jaworski on
URL: https://discuss.orbeon.com/Restrict-file-size-for-xforms-upload-tp2539172p2720598.html

Thanks for your reply and I this is a good setting to restrict the filesize for the entire set-up.
However, I would like to restrict the file-size for each individual upload element. There is a xxforms:size element in the upload which shows the file-size. Is it possible to use that element to set a maximum for that individual upload/file?

Kind regards,
Antek Jaworski

Op 14-9-2010 17:49, Bittard, Julien schreef:

Hello

 

There is a propertie in ORBEON :

 

<property as="xs:integer" processor-name="oxf:request"   name="max-upload-size"          value="10485760"/>

 

In the « value » attribute, you indicate the max file size in byte.

 

For example :  value="10485760" => max file size = 10 Mo

 

Julien.

 

De : AH Jaworski [[hidden email]]
Envoyé : mardi 14 septembre 2010 17:35
À : [hidden email]
Objet : [ops-users] Restrict file-size for xforms:upload

 

I would like to restrict the file-size for the xforms "upload"-element to use in Orbeon. When somebody uploads a file that is larger than the maximum allowed file size, there should appear an error-message and the file should be declined.

I've been looking at binding the @size attribute of the upload element and at processors to handle the files, but I haven't found a working solution for my problem.

Can someone help me with this problem?

Kind regards,
Antek Jaworski

Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


--
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