Hi!
I'm new to the forum and I have the following problem: When I use the File Attachment control (type="xf:base64Binary") on a form created with Form Builder. The maximum size that allows me to attach is 3MB, Are there any limitations on the size? Can I modify the maximum size? I hope you can help me. Thank you! -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi Ruben,
Did you create that form in Form Builder? If so, you can have a limit set in Form Builder itself, or through properties (see 1st link below). Otherwise is it possible you have a constraint written "by hand" in XForms? Finally, I imagine that you could have a limit set at the application server level, either explicitly or by default (for Tomcat, see `maxPostSize` in the 2nd link below). https://doc.orbeon.com/configuration/properties/form-runner-attachments.html https://tomcat.apache.org/tomcat-9.0-doc/config/http.html You'll let me know what you find. Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex! I have reviewed the post and added the max-upload-size property. The problem was resolved. Thanks Alex! -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
In reply to this post by Alessandro Vernet
Hi Alex!
I have reviewed the post and added the max-upload-size property. The problem was resolved. Thanks Alex! -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Excellent Ruben, I'm glad you found the issue was with the `max-upload-size`
property. The default now is 100 MB (and have been so for a while), but maybe was lower in the past. Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
In reply to this post by Alessandro Vernet
Hi
I have attachment control anyUri type. My max att size is (after some tests) 10mb. I'd like to make the limit bigger. I've red this post https://doc.orbeon.com/configuration/properties/form-runner-attachments.html and in my properties-local.xml file I havent found property, <property as="xs:string" name="oxf.fr.detail.attachment.max-size.*.*" value=""/> So I added it with value 50000000 (50mb) and restarted JBOSS, but anything changed. Still i have 10 mb limit. I create form with form builder and I dont see in form source that its overriden. Where i can find this property? processor-name="oxf:request" Or where I should search limit i have? Thanks Romek -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi Romek,
The property is, here set to 100 MB: <property as="xs:integer" processor-name="oxf:request" name="max-upload-size" value="100000000"/> You'll let us know if setting this property works for you. And for the documentation, see the page linked below. https://doc.orbeon.com/configuration/properties/xforms.html Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thank You for answer.
-- I added this property to my properties-local.xml which is here \\jboss-as-7.1.1.Final\standalone\deployments\orbeon4.war\WEB-INF\resources\config and restarted jboss but stil the same limit. When i try to upload larger file progress bar stops and i have an error. I also found properties-base.xml file here \\deployments\deployments\orbeon4.war\WEB-INF\lib\orbeon-resources-private.jar2\config and here \\standalone\deployments\orbeon4.war\WEB-INF\lib\orbeon-resources-private.jar2\config and properties <property as="xs:integer" processor-name="oxf:request" name="max-upload-size" value="100000000"/> <property as="xs:integer" processor-name="oxf:request" name="max-upload-memory-size" value="10240"/> so I increased max-upload-memory-size to 20480 but no result. I've red article You linked, thanks but still (and its strange) no results. In long i have Exception: org.orbeon.oxf.common.OXFException | |----------------------------------------------------------------------------------------------------------------------| |org.orbeon.oxf.xforms.processor.XFormsServer |doIt |XFormsServer.java | 351| |org.orbeon.oxf.xforms.processor.XFormsServer |access$000 |XFormsServer.java | 62| |org.orbeon.oxf.xforms.processor.XFormsServer$1 |readImpl |XFormsServer.java | 88| |org.orbeon.oxf.processor.impl.ProcessorOutputImpl$T|read |ProcessorOutputImpl.java | 258| |org.orbeon.oxf.processor.impl.ProcessorOutputImpl |read |ProcessorOutputImpl.java | 404| |----------------------------------------------------------------------------------------------------------------------| |Exception: org.orbeon.oxf.common.ValidationException best regards Romek W dniu wtorek, 24 kwietnia 2018 23:30:58 UTC+2 użytkownik Alessandro Vernet napisał: Hi Romek, You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi Romek,
If in your version the default value for `max-upload-size` is 100000000 (100 MB), then there is no use in changing this property. Could you reproduce the problem, and check if you have an exception in your `orbeon.log` when the problem happens? If so, could you attach the relevant part of the `orbeon.log` (that is, a larger section from the exception you quoted in your message)? Finally, what version of Orbeon Forms are you running? Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Hi Romek,
Is this still an issue? If so, did you get a chance to reproduce the issue and check the `orbeon.log`? Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |