Collection and manual file upload

okay, I have a collection. With this collection there can be at least one row or there could be many. Some of the fields are user updateable. So pretty much I have a tabular form on a collection. I have all my page processes to handle the table and perform DML the table correctly. I now have a requirement to be able to upload a file for each row. Therefore what I did was this....
....,'<input name="f18" type="file"/>' as "Disposal Document"....in my select list for my collection. FYI it is PL/SQL returning SQL.
Then in the page processing when I "save" off the collection using the collection API i saved G_F18(i) in clob001. Then just did an insert statement into my table based on the collection. Cool...nothing too hard.
Now to download an image on another page that calls this javascript, just so the document opens in a new window...
function documentpoup(disposal_id){
window.open('/pls/apex/#OWNER#.download_file?pid='+disposal_id,'Attachment','width=800,height=600,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes');
</script>now my procedure converts my clob into a blob to download it...
  l_mime_type                varchar2(255); 
  l_length                number; 
  l_content_file_name           varchar2(2000); 
  l_content_file           blob;
  myclob clob;
l_dest_offset   integer := 1;
l_source_offset integer := 1;
l_lang_context  integer := DBMS_LOB.DEFAULT_LANG_CTX;
l_warning       integer := DBMS_LOB.WARN_INCONVERTIBLE_CHAR;
begin
  select null, disposal_document, item_number||'-'|| org_code ,dbms_lob.getlength(disposal_document)
    into l_mime_type, myclob, l_content_file_name, l_length 
    from material_disposal
    where disposal_id = pid;
  DBMS_LOB.CREATETEMPORARY(l_content_file, TRUE);
  DBMS_LOB.CONVERTTOBLOB
   dest_lob    =>l_content_file,
   src_clob    =>myclob,
   amount      =>DBMS_LOB.LOBMAXSIZE,
   dest_offset =>l_dest_offset,
   src_offset  =>l_source_offset,
   blob_csid   =>DBMS_LOB.DEFAULT_CSID,
   lang_context=>l_lang_context,
   warning     =>l_warning
  owa_util.mime_header(nvl(l_mime_type,'application/msword'), FALSE ); 
  htp.p('Content-length: ' || l_length); 
  htp.p('Content-Disposition: inline; filename="' || l_content_file_name || '"');
  owa_util.http_header_close; 
  wpg_docload.download_file(l_content_file);  When the file downloads all I have in my "docuemnt" is the name of the file...It is like the file is not actually being uploaded. So something is wrong.... :(
Some more info. The reason I am doing a CLOB and not just BLOB is becasue of the collection. If I could figure out a way not to mess with the CLOB and only use the BLOB that would be cool, but since I am not using an apex item and I am using just html...for some reason the files will not go into the wwv_flow_files table. I have done a dummy page to test this and I can't get it to work...i.e. if I have an apex item that is a file browse type then the file is uploaded, but if I have an html region with an input type of file then that file is not uploaded....has anyone seen or had to do anything like this???or could anyone point me in the right direction?!?
Thanks,
David

does anyone have any ideas?
-David

Similar Messages

  • Flex and php file uploader cross browser problems

    Hi, I have a problem in flex and php file uploader. It was
    working fine in Internet Explorer, but nothing would work in
    Firefox and in other browsers. Firefox and other browsers was not
    sending the session with the file upload and was producing a login
    error. On IE the session cookie is picked up and the upload request
    uses the authenticated session, no login error. I'm newbie in flex.
    Please help me. Thanks in advance!
    Here's my code:
    bgupload.mxml

    Hello, I am Gamaliel Arredondo, i have solved this problem, the error is in the code, you have a mistake in your code, check it out.
    The way to run the flex applications, in my case, i installed xampp, in the htdoc directory i put the folder with the files of the application and all is working very well, only when the apache is running because if it is stoped the application show error, please review your code and if you have problems you can contact me by e-mail ([email protected]) i also fought with that problem but i could find the solution, i hope to help you.

  • .xls and .xlsx file upload in webdynpro

    Hi All,
    Its very urgent.Tried for many options, Searched the scn. But no result. None of them are consistent while uploading xls and xlsx file.
    Sometimes the same file is working garbage value and sometime is working fine.
    Even I tried using CL_FDT_XL_SPREADSHEET , but its always been caught by cx_fdt_excel_core.
    Could anyone suggest me what to do in this case, as my client is not agreeing to any other kind of file .

    Hi Prabhati,
         i had a similar requirement  but i was able to persuade my clients to use tab delimeted file(saved as xls).
    XLS and XLSX excel upload in WDA - webdynpro
    Thanks & Regards,
    Tashi

  • How do I collect and organize files into a new folder without breaking the links to my media?

    I'm new to premiere pro, and learned that I probably should have figured out where to organize all of my files from the beginning, but in the post production phase, I have a bunch of audio and image files sitting all over my desktop, and I'm afraid that if I move them, I'll break the links to all of my media. Files I edited in CS6 Photoshop and Audition are of special concern (considering they get automatically routed to my desktop).
    Does anyone know how I can collect all of the files and media that were imported into my project, and and archive them into a folder without breaking the project's links to the original media? Perhaps there's a way to copy all of the files and move them into that folder, so that when I move the originals, I'll still maintain all of the links in the copied version?
    I tried using the project manager tool, but received an "unknown error message" each time I ran it. 
    Any organizational insight would be much appreciated!     

    Read Bill Hunt on ONE project setup idea http://forums.adobe.com/thread/919388?tstart=0
    Also read Metadata contained in folder http://forums.adobe.com/thread/1015001?tstart=0
    -and http://helpx.adobe.com/premiere-pro/using/transferring-importing-files.html

  • Office, PDF and CAD files upload into the dms system and viewing them .....

    i have uploaded a excel file into the dms server
    i dont want others to save the doc , while viewing in the sap viewer.( made necessary setting)
    any setting required for me to do this???
    i am able to view the office files in sap viewer, can i have the same option for PDF also??? and the same to CAD files also?
    Regards
    surya

    Dear Surya,
    of course you can have the same behavior for PDF and CAD files. You just have to create a new workstation application for these filetypes in transaction DC30 and maintain the correct parameter so that these files are also viewed by the integrated ECL Viewer.
    For further information please see the following link:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/plm/2.Customizing%2528CA-DMS-EAI%2529
    Best regards,
    Christoph

  • How do I view an FTP site in Windows Explorer for drag and drop file upload in Firefox?

    In Internet Explorer you have the drop-down menu option called '''"Page"''' (located below the address bar, on the right-hand side). In the options listed you can''''' "Open FTP side in Windows Explorer"'''''.
    I cannot seem to locate a similar option within Firefox 4.0.
    Guidance and suggestions welcome. Thanks.

    You can look at:
    * FireFTP: https://addons.mozilla.org/firefox/addon/684
    * FileZilla: http://filezilla.sourceforge.net/

  • Assigning video files uploaded via a customer form to the src file section of another page (without manually having to copy an paste over)

    Hi. I’ve set up a web form that uses html and javascript. This particular form lets you upload files. I also have another page that lets you play videos. I was wondering if anyone knows how to make the inner html of for example the upload file form field equal the file that is played by the video player on the other page.
    Basically on youtube when you upload a video it automatically makes another page with the video file you uploaded assigned to the video player on that page. I want to know how to go about doing that. So people can upload videos and then be able to watch them instantly without me manually having to create the page an assigning the right file to the page.
    Even just knowing how to create a different page each time the form is submitted would be helpful. Thanks.

    This is more complex than you realize and JavaScript alone can't do it. You'll need a server-side script like PHP to authenticate and sanitize file uploads to prevent malicious scripts or malware from ever getting to your server.  Then, your script will have to process the uploaded file by saving it to a folder or database, give it a unique ID and then redirect users to a new page that pulls the file into an HTML5 or similar player.  How good are you with server-side programming?
    Nancy O.

  • Uploading and downloading files in webdynpro java

    how to upload and download xl files in webdynpro java application .

    Hi ,
    Refer these links they maybe helpful to you
    You can check this sampple example from SDN
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40db4a53-41a9-2910-d4a2-9c28283f6658
    Uploading and Downloading Files In Web Dynpro Java
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f
    http://help.sap.com/saphelp_nw04/helpdata/en/43/85b27dc9af2679e10000000a1553f7/content.htm
    Uploading and Downloading Files In Web Dynpro Tables
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f
    Some more links regarding Uploading and DownLoading Files
    Uploading and downloading files
    Upload and Download file through RFC called by java
    Regards,
    Saleem

  • File Upload via Drag and Drop in IE10

    The drag-and-drop file upload feature introduced in Spaces PS5 is great but it is not compatible with IE9 and earlier versions (see link below).
    Has anyone tried using drag-and-drop with IE10? Did it work?
    https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?_afrLoop=1753102566545647&type=DOCUMENT&id=1453326.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=nyed5wpzc_584

    I'm using the Windows version of Acrobat Pro 9 and found this thread with the same problem. (Key command to replace on Windows is: Ctrl + Alt).
    Anyway, to answer the how to disable the warning, go to the Acrobat Preferences. In the General category under "Warnings", check the setting "Do not show edit warnings". There should be a similar setting on the Mac version.
    (Now I wish replacing pages didn't require a key command like in previous versions.)

  • ICR - File Upload, FBICRC_S_UPLOAD is missing

    Dear experts,
    I want to expand the Data Selection Process of ICR to manual file upload.
    I also read the following thread, which explains how to involve Companies via file import.
    Thread: IC reconciliation process with file import
    Problem 1:
    In this thread its mentioned that I could use the delivered structure FBICRC_S_UPLOAD.
    But unfortunately this structure is missing in my system.
    Has somebody an explanation for this?
    Problem 2:
    Alternative I used structure FBICRC_S_SELECT_003 for the manual company.
    But when I want to upload a file during data selection, the process displays me that "Buchungskreis" is missing in the file. But when I take a look at the structure FBICRC_S_SELECT_003 no field is named "Buchungskreis".
    Does somebody has an explanation for this behaviour?
    Thank you in advance for all answeres
    Tom

    Hello Sebastian,
    #1 If I am understanding you correctly you have 2 entries for each company in FBIC032 - one to select customer/vendor open items and one to select GL open items. However, when you run FBICS3 for these companies only AR/AP open items are selected and transferred. Is that correct? What is the result if you run data selection for GL open items only, i.e. if you specify the corresponding SEQNR on the selection screen (hint: you may have to enter the command ADMIN in the OK code field in order to see the field on the selection screen).
    #2 You assigned documents to each other and they are not shown in the bottom part of the display. Were there any differences in the document groups you created? If not, are the document groups shown when you use function Without differences?
    #3 If you run data selection, automatic assignment, interactive reconciliation (making additional assignments) and then run data selection again no assignments should be deleted. This would only happen if you deleted the transactional data.
    #4 Please check your definition of object groups and sets. Do the used sets actually contain values? Did you also apply the corrections referred to in note https://service.sap.com/sap/support/notes/1267185 - especially note https://service.sap.com/sap/support/notes/1062292 ?
    #5 Is the selection of GL open items taking long or is it the combination of GL open items plus AR/AP open items? How many data records are transferred and how long does this take?
    #6 Since there are usually various sender systems and sender companies with different operative accounts involved in ICR and data selection is usually a central process (scheduled as a batch job and not run by the individual users) the only way to restrict GL accounts is to implement the BADI. The BADI method can be implemented taking into account which sender system and which sender companies are involved.
    Hope this helps,
    Ralph

  • File upload onComplete failing

    I'm using the FileReference.browse method to allow users to
    uplodd an .mp3 to a script. I am using AS2, publishing to Flash8. I
    am looking for and logging events ... when I first created this the
    oncomplete returned success and the file uploaded fine. Somewhere
    along the line oncomplete started to fail, yet the file still
    uploads. However now the flash player continues to attempt to open
    the file it seems, as my CPU pegs with seconds and the browser
    hangs. I can't see that I changed any code in the browse method,
    which I grabbed directly from Flash Help. I had changed the
    oncomplete to onCompleteData but that's not working either. Any
    thoughts out there?
    Here is an example of what I mean (please have an mp3 ready
    to upload.
    Here's
    one if you need it.):
    http://www.pokerxfactor.com/swf/mp3uploadtest.html
    Thanks! any help would be appreciated
    Here is the code:

    I'm using the FileReference.browse method to allow users to
    uplodd an .mp3 to a script. I am using AS2, publishing to Flash8. I
    am looking for and logging events ... when I first created this the
    oncomplete returned success and the file uploaded fine. Somewhere
    along the line oncomplete started to fail, yet the file still
    uploads. However now the flash player continues to attempt to open
    the file it seems, as my CPU pegs with seconds and the browser
    hangs. I can't see that I changed any code in the browse method,
    which I grabbed directly from Flash Help. I had changed the
    oncomplete to onCompleteData but that's not working either. Any
    thoughts out there?
    Here is an example of what I mean (please have an mp3 ready
    to upload.
    Here's
    one if you need it.):
    http://www.pokerxfactor.com/swf/mp3uploadtest.html
    Thanks! any help would be appreciated
    Here is the code:

  • File Upload: no error but don't work. Why?

    Hi all,
    i'm an application with a jsp for upload a file.
    I have the following code in my Action (extention of the DataForwardAction):
    // UploadForm extends org.apache.struts.action.ActionForm
    UploadForm uf = (UploadForm) ctx.getActionForm(); // ctx is DataActionContext
    FormFile ff = (FormFile) uf.getMyFile();
    log.warn("[onLoad] - ff: " + ff);
    but in the log file i found:
    2007-01-18 10:31:33,564 - ERROR (UploadFilePricesViewAction.java:194) - [onLoad] - ff:null
    No errors and not file uploaded.
    Anyone think a reason why this happen?
    Can you help me?
    I use ADF/Struts (no faces) with JDev 10.1.2 and Application Server 10.1.2.1
    Thanks a lot for any suggestion.
    Alessandro

    repost
    Please is very important
    Thanks

  • Flex based Offline File Upload Application

    Hi,
    I am developing a flex based desktop client application,
    which provides capability for offline and online file upload.
    I want to achieve following functionality.
    It detects whether user is online or not, If not online then
    it saves data to somewhere on local file system folder
    and as soon as it detects that user is online, it uploads
    data from local file systm folder to HTTP based server.
    I explored FileReference object in flash.net API, Apparently
    it does not provide any capability to store content to local file
    system.
    Is above mentioned offline file upload possible using action
    script ?
    Pls. help.
    Regards
    Tarun

    hi,
    for all offline working applications you need an offline swf
    to exe maker. i use mdm zinc. it is fantastic for the type of
    problem you mentioned. visit www.multidmedia.com and download a
    trial version. it will provide you with the necessary tool.
    gaurav

  • Distinguish between manually entered file and file uploaded by conversion

    Hi ,
    I am involved in a conversion wherein i have the requirement to get those file uploaded form front end.
    Is there any distinguishing column to know as to whether the file loaded in fnd_lobs or fnd_documents_tl are from front end or through conversion.
    Please let me know if any of you have a solution to it?
    Thanks and Regards,
    Amar Deep Gautam

    You can consider using the upload_Date column.
    OR
    You can consider a naming convention for the file name (such as CONV_PO_TERMS.dat).
    Sandeep Gandhi

  • Reliable file upload using JDev, AS and other

    Hello,
    I'm not sure this is the right place to post this message, sorry if I was wrong to put it here.
    The question is our company is developing software, for active data exchange with other systems. We decided to exchange in xml format, by means of both web services and web interface (so that exchange could happen both automatically and on user request). We use JDev to develop, Oracle AS to deploy application. Systems we exchange can use various platforms, in fact, it doesn't matter what exactly they use. The question is we need a reliable way to exchange large (sometimes small, but can be 1Gb or, for example, 10Gb) files, maybe with appropriate security, so that it could continue if something happens with network connection.
    One simple decision is to have a web service that accepts, for example, 100K at a time, and another service continuously calls it until file is transfered. So it can check response code. But are there better decisions? I think, there are libraries or smth like this?
    Thanks in advance, believe, it's a right place to get help.
    Valeriy

    Another, simpler (we think), such package is Jenkov HTTP Multipart File Upload. It's a servlet filter which can work in front of both servlets and JSP's. The servlet filter parses the uploaded file and stores it temporarily on the servers disk. When the servlet or JSP executes afterwards, it can obtain all the information about the file, from the request attributes. There is a decent manual for HTTP Multipart File Upload on the website.
    Just search for "Jenkov HTTP Multipart" on Google and you'll find it. HTTP Multipart is free, open source, Apache Licsense.

Maybe you are looking for