Well couple of details would be helpful. (what do you mean?, how?)
If you mean using HTML5 theme, i am using Productivity Applications (Theme 26) which is HTML5.
The question is how to perform the upload, maybe i can submit just a region, or an object only?
Isn't that hard to built, but it depends all on the html5 filereader
Being lazy and wanting to use as much of Apex's base functionality as possible, I do my file upload on a modal page. That way I get the best of both worlds. A way to use the Apex wwv_flow_files mechanism, and the ability to call file upload from anywhere I want.
Obviously as ascheffer(?) said, you can use html 5 and ajax to achieve this too but then you have to start considering your browser capabilities and other things. I'm not an Ajax/HTML5 guru by any means hence my easy way out.
If you decide to go the html5 route, route, these links might be helpful
https://developer.mozilla.org/en-US/docs/Web/API/FileReader (note the browser requirements)
Note I don't have much by the way of mobile requirements so I haven't experimented with the Skillbuilders Modal plugin om a mobile device.
1 person found this helpful
Not long ago, I created a mixed APEX application (desktop and mobile) using Theme 25 of APEX 4.2 where I had to let the users upload BLOB files using a modal window for the desktop pages. I tried various options to upload files asynchronously including FileReader. HTML5 FileReader object is promising but it is not supported in Internet Explorer versions less than 10 ( https://developer.mozilla.org/en-US/docs/Web/API/FileReader#Browser_compatibility ).
The closest I came to implementing upload without submitting the page is via an iframe as described in this thread: https://forums.oracle.com/thread/2198070?start=0&tstart=0.
I also tried using Carl Backstrom's Ajax method of using apex.ajax.clob object ( see Martin Giffy's blog post http://www.talkapex.com/2012/08/how-to-sendupload-clob-from-browser-to.html ) and APEX API function apex_web_service.clobbase642blob to convert the CLOB to BLOB. However, it had it's own challenges such as determining the correct MIME type.
Ultimately, I just went ahead with the traditional approach of submitting the page so that I could access the contents of WWV_FLOW_FILES.
Thank you All, Thanks JMcG.
Looks like i would have to use Modal Dialog and submit the page.
The only problem is that we use Chrome here, and Chrome does not support
Well... this is it.
It would be nice Kofi, but unfortunately I am under restriction.
I can't use any 3rd party plugins or other code.
Will go with what I can
Not sure what version of APEX you are using but if it's 4.2 and above, you can use APEX modal regions and then call openModal('REGION_STATIC_ID') and closeModal('REGION_STATIC_ID') via button or link.
Nice option but again that would mean that i have to submit the page, and it is not what i want.
I think I will stick with window.showModalDialog() , even if it is nor really modal in Chrome.
Thank you all!