|File Upload and Download Procedures - Upload and download files directly from the database using Database Access Descriptors.|
Vaidehee said...I understood the upload download procedures in this article but i just want to know what code to write on the Browse button so that i get the choose the file dialog box.
Tim... said...The "upload.html" file listed in the article is an example of the upload HTML. Download this file and you have yor answer.
Mary said...Hi Tim
Mary said...Hi Tim, I use your code and i can upload files and see the files as a links, but my problem is when i want to download them. When i click in the The second set of links (procedure directly) it marks me an error: ora-00932 inconsistent datatypes: expeted number got binary. What can i do? Thanks :)
Manivannan said...Hi Tim,
I have a small clarification in this article,i need to upload some PDF files to oracle database whether its possible through this code.
Tim... said...Yes. You can upload any document types.
Rahul said...Hi ... Can the same code be used for uploading CLOB instead of BLOB type ?
This article is such a big help!
Thanks a lot!
Anonymous said...How can one add the following to the code:
limit the file size & limit the types of files. I.e., don't allow all file types?
Using this process, you only know about the file after it has been uploaded, so you would have to check the mime_type and doc_size after the upload and delete it if it is invalid. It is better to build these sort of check into the front end application. That way you save on the wasted upload.
PS. Questions in the forum, not in the comments please.
DO NOT ask technical questions here, that's what my forum is for!
These comments should relate to the contents of a specific article. Constructive criticism is good. Advertising and offensive comments are bad and will be deleted!