Main Region

Fileupload Filesize
6 answers | 3129 views

Oct 27, 2014 09:06 +00:00


I have a problem with "FOEX Multiple File Upload". When I upload a file which is bigger than 6mb (not exactly 6mb, but somewhere near it), the upload fails.
I've tried uploading different files in different Browsers but it doesn't work. APEX File Upload works. I also changed the "File Size Limit" to 20480kb but still no changes.

Thanks in advance



Christian86 Oct 27, 2014 09:40 +00:00 


we use PL/SQL Gateway. I can´t find these two directories. They should be in the Database Software directory, am I right?


Matt Nolan Oct 27, 2014 09:45 +00:00 

Yes, it is in the dads.conf or plsql.conf config file under the software installation i.e. $ORACLE_HOME

Christian86 Oct 27, 2014 09:53 +00:00 

Problem is that i can´t find any Apache oder ohs directory.

Matt Nolan Oct 27, 2014 09:55 +00:00 

I guess you're going to have to check with the sysadmins/dbas or whoever installed/setup your environment.

Matt Nolan Oct 27, 2014 10:26 +00:00 

I assumed you were referring to modplsql.

The embedded PLSQL Gateway is not meant for production, if you are using this we strongly advise against it! You should be using the APEX Listener like the majority of companies who use and deploy APEX.

That said to increase the value for the embedded PLSQL Gateway you can issue:

dbms_epg.set_global_attribute(‘max-parameters’, ‘5000’);

Please make sure you spend some time researching Oracle specific settings to understand them.

Matt Nolan Oct 27, 2014 10:32 +00:00 

If you also read the documentation about the multiple file upload plugin you will find that it uses the HTML5 File API and AJAX to upload files, whereas APEX does not it uses a traditional method. Therefore when stating APEX fileuploads work just fine well that's because it uses a different method.

Different webservers impose different set limits on accepting large POSTs from browsers and separately have restrictions on the size allowed for the uploading of files. Hence why there is a difference with the allowed files sizes between upload methods.

Christian86 Oct 27, 2014 10:33 +00:00 

Thanks, now it works. We will think about APEX Listener.

Matt Nolan Jan 22, 2015 14:16 +00:00 

Please refer to the documentation of Web Logic for the correct version you installed, as we do not use this type of web server.

e.g. something like

Matt Nolan Jan 23, 2015 06:09 +00:00 

Check the web server logs and investigate. Also have your browser developer tols open and check the ajax responses for the file uploads.

Matt Nolan Jan 30, 2015 07:41 +00:00 

I previously stated before the multiple file upload uses the HTML5 API which is different from a standard APEX file submit. It POSTs the file in a base64 encoded array.

What are the messages from the web server log and the AJAX response in firebug/developer tools?

Matt Nolan Jan 30, 2015 14:48 +00:00 

That error looks like you will need to increase your Java heap size e.g. -XX:MaxPermSize=1024m

Christian86 Feb 2, 2015 06:25 +00:00 

I´ll try, thank you very much for your great help. This forum is really great!

Oct 27, 2014 09:25 +00:00

You need to increase the maximum allowed file size on your server:

For modplsql the default the setting for PlsqlMaxParameters is 2000 which equates to about a 5.75M file. To increase the allowed file size modify your DAD configuration in the $ORALCE_HOME/ohs/modplsql/conf/dads.conf file or $ORALCE_HOME/Apache/modplsql/conf/dads.conf file and set PlsqlMaxParameters to a higher value.

For the APEX listener you need to increase "maxPostSize" on your web server. For Glassfish the default value is 2097152 bytes. To in crease it on glassfish you can find it under "Network Config"->"Network Listeners"->"http-listenerX"

alt text


Oct 27, 2014 10:21 +00:00

Hi Matt.

I am the DBA. We use Standardedition one and APEX/Foex uses the embedded plsql gateway. We can´t find any Apache or ohs directory. With Standard APEX Fileupload it works fine.



Jan 22, 2015 13:33 +00:00

Hi Matt

now we use Weblogic instead of embedded PLSQL Gateway. Where do I find the parameter here for max. filesize? Thank you in advance



Jan 23, 2015 05:52 +00:00

we have set maxpostsize to unlimited but the upload still fails.


Jan 30, 2015 07:34 +00:00

The error only occurs when I use the file upload from FOEX. With Standard File Upload from APEX, it works.


Jan 30, 2015 09:05 +00:00

I found the following Error:

[2015-01-30T09:42:59.068+01:00] [WLS_FORMS] [ERROR] [] [] [tid: [ACTIVE].ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 08547c8bfe1f0116:-1f7cae7b:14b292c4277:-8000-000000000014b5ab,0] [APP: apex] Java heap space[[ java.lang.OutOfMemoryError: Java heap space at oracle.jdbc.driver.OraclePreparedStatement.processPlsqlIndexTabBinds( at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers( at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow( at oracle.jdbc.driver.OraclePreparedStatement.executeInternal( at oracle.jdbc.driver.OraclePreparedStatement.execute( at oracle.jdbc.driver.OracleCallableStatement.execute( at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute( at sun.reflect.GeneratedMethodAccessor433.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke( at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke( at oracle.ucp.jdbc.proxy.CallableStatementProxyFactory.invoke( at $Proxy145.execute(Unknown Source) at oracle.dbtools.apex.OWA.execute( at oracle.dbtools.apex.ModApex.handleRequest( at oracle.dbtools.apex.ModApex.doPost( at oracle.dbtools.apex.ModApex.service( at oracle.dbtools.rt.web.HttpEndpointBase.modApex( at oracle.dbtools.rt.web.HttpEndpointBase.service( at javax.servlet.http.HttpServlet.service( at weblogic.servlet.internal.StubSecurityHelper$ at weblogic.servlet.internal.StubSecurityHelper.invokeServlet( at weblogic.servlet.internal.ServletStubImpl.execute( at weblogic.servlet.internal.TailFilter.doFilter( at weblogic.servlet.internal.FilterChainImpl.doFilter( at$ at Method) at at at at



You must log in or sign up to post questions and answers.