| File Browse - filename length limit |
|
|
|
| Friday, 20 November 2009 23:26 |
|
I use the built in "File Browse" item in many of my applications and for a long time I had not experienced any issues. However, recently I noticed that there was an issue when using large filenames. If I selected a large filename and submitted the page a HTML error page was displayed. What surprised me was that this was not the usual APEX error page. After some investigation I found an interesting post on the APEX forums at Oracle. <script type="text/javascript">
javascript:if(!checkFileName($x('P1_FILE_NAME')))return false;doSubmit('UPLOAD'); The above example is very simple but I think that implementing something similar is essential if the built in "File Browse" button is used in a production application. |