Upload ZIP files in Portal v2

How do you upload a zip files in the portal v2.

Hello,
Well both procedures are good, the difference between them is that the first procedure has public execute and the second one does not have public execute that's why wasn't working...
Regards.

Similar Messages

  • Uploading zip file to server

    Hi,
    I want to upload a zip file in some server location,till now i have below code,but not able to get any clue how to upload zip file to server when user press Begin button.
    Can someone please help me?
    >
    JSP code:
    <af:inputFile label="Upload:"
    valueChangeListener="#{ifarm.fileUploaded}"/>
    <af:commandButton text="Begin"/>
    Bean code :
    public void fileUploaded(ValueChangeEvent valueChangeEvent) {
    UploadedFile file = (UploadedFile) valueChangeEvent.getNewValue();
    if (file != null)
    System.out.println("************** "+file.getFilename().toString());
    >>

    All you need to do is to get hold of the input stream of the upload file and copy it to an file on your server (which you can create).
        public static int copy(InputStream input, OutputStream output)
                throws IOException {
            byte[] buffer = new byte[1024 * 4];
            int count = 0;
            int n = 0;
            while (-1 != (n = input.read(buffer))) {
                output.write(buffer, 0, n);
                count += n;
            return count;
        public void fileUploaded(ValueChangeEvent valueChangeEvent) {
            UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
            if (file != null) {
                File ff;
                try {
                    // create a temporary file on the host server
                    ff = File.createTempFile("xx", "yy");
                    FileOutputStream os = new FileOutputStream(ff);
                    IOUtils.copy(file.getInputStream(), os);
                } catch (IOException e) {
                    e.printStackTrace();
                System.out.println("************** " +
                                   file.getFilename().toString());
        }Timo

  • Upload ZIP File

    Hi Experts,
    Is it possible to upload multiple files or can we upload a ZIP file in web dynpro abap????
    I got to know about an intersting UI element of AcfUpDownload UI element, but still am not getting clear on it.
    Also I have checked in this link Web Dynpro ABAP Tutorial: ACFUpDownload and ACFExecute as well as standard component WD_TEST_APPL_ACFUPDOWN. But now I have confused a lot
    Please give me some idea, as how can I go ahead for uploading ZIP files.
    BR,
    RAM.

    Thanks Kiran,
    I was waiting for your reply only
    Even I saw the same Flash Islands wiki, but thought that I can do the same thing using normal web UI element itslef.
    Also please clear me one thing Kiran, can I use the File Upload UI element for uploading the ZIP File???
    As my client already has ZIP file in hand, I don't wish to go ahead for CL_ABAP_ZIP again.
    BR,
    RAM.

  • Problem while uploading text file through portal into WebDAV repository .

    Hi all...
    I am not able to upload any file through portal onto my webDav repository for remote server however reverse is possible i.e. any document created at remote server is reflected in portal.
    Everytime when i try to upload file though portal , i get the following error::
    The item could not be created because an exception occurred in the framework.
    Kindly suggest what to do....
    ThankS

    Hi Chetna,
    Have you specified any user information in the webdav repository....Like always connect through this user, in the webdav repsository tab....This user may not have write permission in the windows.
    Also are you sure that the user you logged in portal by which you failed to create new files or folders and the user that was able to create file in the windows are one and the same.....
    Regards,
    Ganesh N

  • Can't upload Web Job: Could not upload zip file for job:

    A few days ago, out of the blue my Web Jobs I had associated with one of my Azure Websites disappeared. Actually at the root of the dashboard in the Portal there were still listed as a Job collection BUT not associated with the website. There were also errors
    in the Job logs but I foolishly deleted the Jobs and tried to upload them again. However I keep getting an error when attempting to upload the zip file [as I had previously done] against this same website. I've tried against another website and it worked ok.
    But I need to upload against this ONE particular site as the webjobs get files from that website. I did discovered lots of nasty trace in the kudu log file. Here is some:
    I've searched and search forums and discussions but can't proceed. Can anyone assist me?
    <Events><Event><System><Provider Name="ASP.NET 4.0.30319.0"/><EventID>1309</EventID><Level>2</Level><Task>0</Task><Keywords>Keywords</Keywords><TimeCreated SystemTime="2015-03-14T16:17:48Z"/><EventRecordID>-1680563781</EventRecordID><Channel>Application</Channel><Computer>RD000D3AD0013E</Computer><Security/></System><EventData><Data>3005</Data><Data>An
    unhandled exception has occurred.</Data><Data>3/14/2015 4:17:47 PM</Data><Data>3/14/2015 4:17:47 PM</Data><Data>63d127c928c44f0084bdb2a93fc5ab81</Data><Data>1</Data><Data>1</Data><Data>0</Data><Data>/LM/W3SVC/1897069090/ROOT-4705-130708234647101317</Data><Data>Full</Data><Data>/</Data><Data>D:\Program
    Files (x86)\SiteExtensions\Kudu\43.40212.1385\</Data><Data>RD000D3AD0013E</Data><Data></Data><Data>6368</Data><Data>w3wp.exe</Data><Data>IIS APPPOOL\payskool-schooladmin</Data><Data>InvalidOperationException</Data><Data>The
    pre-application start initialization method Run on type WebActivator.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..
       at System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures)
       at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods)
       at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean&amp; isRefAssemblyLoaded)
       at System.Web.Compilation.BuildManager.ExecutePreAppStart()
       at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
    Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
       at WebActivator.BaseActivationMethodAttribute.InvokeMethod()
       at WebActivator.ActivationManager.RunActivationMethods[T]()
       at WebActivator.ActivationManager.RunPreStartMethods()
       at WebActivator.ActivationManager.Run()
    Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
       at Microsoft.AspNet.SignalR.DefaultDependencyResolver.RegisterDefaultServices()
       at Microsoft.AspNet.SignalR.DefaultDependencyResolver..ctor()
       at Kudu.Services.Web.App_Start.NinjectServices.SignalRNinjectDependencyResolver..ctor(IKernel kernel)
       at Kudu.Services.Web.App_Start.NinjectServices.RegisterServices(IKernel kernel)
       at Kudu.Services.Web.App_Start.NinjectServices.CreateKernel()
       at Ninject.Web.Common.Bootstrapper.Initialize(Func`1 createKernelCallback)
       at Kudu.Services.Web.App_Start.NinjectServices.Start()

    Thanks very much for your prompt reply. This has indeed fixed the issue.
    Can I ask what might have caused the issue in the first place to necessitate the restart? Is it possibly there were too many logs files and that perhaps disk space became an issue for the Website?
    Kind regards,

  • Upload Excel File from Portal (R/3 working fine)

    Hi Experts!!
    We have a report in which we are uploading an excel file from presentation server into an itab. When F4 clicked for file path, browser will open for choosing the path. Now, we have created an iView in Portal for this t-code. However, F4 is not working from Portal, rather giving an error 'Please wait. You will be forwarded automatically. This page had to be included for technical reasons.'.
    We need to upload excel file even from Portal too. Can somebody please give me some inputs or suggestions?

    Hi Jigar,
    Now I am able to get into SAP screen. However it's not opening the t-code that I mentioned. I gave some Z t-code ZTEST. Once I check the iView, it is showing SAP screen with the below things:
    Service Type:
    Service ID:
    TCode: ZTEST
    Object Type:
    Key:
    Field 1:
    Val. 1:
    Field 2:
    Val.2:
    Field 3:
    Val 3:
    And at the bottom it's giivng a warning message:
    Object type or object does not exist
    Message no. 1W001
    In iView properties I can see Object Type as com.sapportals.portal.iview. Is this the same Object Type that the message is talkign about? Can you please help me out?

  • Uploading a file to Portal server

    Hello all:
    First question: I'm creating an HTML page that uploads a file to the server using a form like this:
    When user fills the form and sends the file and error is showed:
    Application error occurred during request processing.
      Details:   Error [com.sap.engine.services.servlets_jsp.server.exceptions.WebServletException:
    Error in dispatching request to servlet /servlet/com.citas.Citas.], with root cause java.lang.NullPointerException: null.
    In the trace log file, appears an error message:
    #1.5#000F20CF176F00470003A2D300000D900004310A97BCC911#1179821471985#com.sap.ip.collaboration.rtc#sap.com/irj#com.sap.ip.collaboration.rtc.class com.sap.ip.collaboration.core.api.rtmf.core.RTMFMessaging.JMSPolling.startRunning()#anonymous#0##portald.huc.es_EP6_7205750#Guest#ea1ca07002d011dccf9a000f20cf176f#Thread[Thread-70,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Java###Exception in method: javax.jms.JMSSecurityException: You do not have permissions: action create_queue and instance ALL.
    #1#javax.jms.JMSSecurityException: You do not have permissions: action create_queue and instance ALL.
         at com.sap.jms.protocol.notification.ServerExceptionResponse.getException(ServerExceptionResponse.java:231)
         at com.sap.jms.client.session.Session.checkReceivedPacket(Session.java:2613)
         at com.sap.jms.client.session.Session.createQueue(Session.java:2442)
         at com.sap.ip.collaboration.core.api.rtmf.core.RTMFMessaging$JMSPolling.startRunning(RTMFMessaging.java:1130)
         at com.sap.ip.collaboration.core.api.rtmf.core.RTMFMessaging$JMSPolling.run(RTMFMessaging.java:1067)
         at java.lang.Thread.run(Thread.java:534)
    I think the error is caused by an authotization problem, but I don't know how to solve it.
    Second question: I'd like to know where is the default folder in the server where the files are uploaded in that way (HTML form). I don't know how to configure it. Maybe I could change permissions in it to allow Portal users to read/write in it.
    Thank all in advance. Regards,
    Alejandro Gómez.

    HI Alejandro
    Refer to this thread may be of some help to you .
    Authorization for JMS resources
    Thanx
    Pankaj

  • Socket blocking on read operation while uploading zip file to the server

    I am trying to upload a zip file to the server
    Client thread creates the zip file ( of the modified files) and it even completes writing the data to the socket stream.
    Now if the server thread tries to read the same data from the stream, it blocks on read operation.
    While downloding the zip file from the server works fine.
    Thanks in advance

    You can use the URL object to upload it as multipart/form-data.
    http://forum.java.sun.com/thread.jspa?threadID=579720&messageID=3997264
    Or check out some of the file uploaders out there.
    http://www.google.nl/search?hl=nl&q=site%3Asun.com+upload+applet&btnG=Zoeken&meta=

  • Upload a file to portal--- BW application server.

    Dear All,
    I have requirement where some part of business does not have SAP installed. But we would like to extract data from these business too.
    So just wanted to know if we can have a scenario where user will upload the data to the portal (this is just a web portal). Can this be done?
    Secondly, if the can be done, can we extract the file from portal to application server? From application then it becomes very simple to upload to data targets in BW.
    Please help in this regard.
    Thanks,
    Sandeep

    Assign an ID (e.g. 1234) to the uploaded file. You should abstract the store
    so that it will work on the file system or in the database.
    The JSP will include an image ref to that ID, e.g.
    http://www.myco.com/myapp/imageservlet?id=1234
    The image servlet will retrieve and stream the image. It has to set content
    type etc. You should also verify that the current user has access to the
    requested image if security/privacy is an issue.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com/coherence.jsp
    Tangosol Coherence: Clustered Replicated Cache for Weblogic
    "newsgroups.bea.com" <[email protected]> wrote in message
    news:3daadaa5$[email protected]..
    Imp struggling to find a way of uploading an image file from the browserto
    the app server (wl 6.1), where the uploaded image will to be included as
    part of a JSP file.
    ** Note
    - this part of Managed Cluster, the uploaded directory is NFS mounted
    between the managed servers
    - we deploy using EAR's from the admin server.
    I am able to upload but, cant get the uploaded image to display as partof
    a JSP,
    Our 5.1 WL server work perfectly using a standard exploaded directory !
    I have logged this as a call at BEA, but they have not been able to offerme
    a solution yet.
    Regards
    Roland

  • Uploading Zip Files

    I recently tried to send several files to a friend for a school project and was unable to do so. When I worked with my PC I would send all the files to a zip folder and upload the zip file. Is there a way to create zip files on a mac?

    Mark,
    Click on the folder that you want to zip and select File>Create Archive of "Folder XX." You will now have a file named "Folder XX.zip. That is all you have to do.
    ;~)

  • How to upload a file in portal

    Hi,
    I am using submit resume form in which i have one field upload resume.So how can upload resume while using form portlet.Does any have idea how to do that

    Hi,
    You have to do a small application to upload a file.
    You have to create a table with blob column to store the uploaded resume into that column.
    You should have some third party jar file to convert your content into streams and to upload into your db
    If you need more info reply back.
    Regards,
    Vijay.B

  • Error While Uploading XDB files in Portal.

    Hi Experts,
    I have created an adobe forms which consists of Date,Text,NUmeric fields. After saving the same file in xdb format and trying to upload the same file to generate xml in portal, it is throwing error in create callable object --> Upload Default Language Template.
    The error is Could not retrieve template fields: Wrong document format or adapter mismatch from adapter.
    Your help will be higly appreciated.. Please help me...
    Regards

    .

  • Can u upload .htm file via portal app

    i have developed a simple webcenter portal application (11.1.1.6)
    i also have UCM 11.1.1.6
    I am able to see contribution folder in my portal app.
    Is it possible to upload a local file (c:\sample.htm) from my webcenter portal app TO ucm ???
    If yes, then what is the taskflow i should use. i used Folder Viewer and Document Explorer and try upload this htm it gives me a popup with
    info ---  Unable to upload document why ?
    thx

    Did you check the following documentation -
    http://docs.oracle.com/cd/E21764_01/webcenter.1111/e10148/jpsdg_doc_lib.htm#CIHCEACA
    Also check the section -29.5 Setting Parameters to Upload Files to Content Repositories
    where it is clearly mentioned -
    "The Document Manager task flow allows you to upload files into content repositories. Oracle WebCenter Framework uses Apache MyFaces Trinidad to handle file upload from a browser to the application server."
    and "To change the default settings of Apache MyFacesTrinidad, you can add three parameters to the web.xml file. To edit this file, open the ViewController project of your application. Under Web Content, open the web.xml file. In the Overview, navigate to Application > Context Initialization Parameters, then click the green plus (+) sign to add the parameters and their values (as described in Table 29-1) or simply update the code in the Source view. After you've made your changes, save the web.xml file, then restart Oracle JDeveloper.
    Table 29-1 Apache MyFaces Trinidad Parameters
    Parameter      Description
    UPLOAD_MAX_MEMORY
    The maximum amount of memory in kilobytes that a single file can use when uploaded.
    UPLOAD_MAX_DISK_SPACE
    The maximum amount of disk space in kilobytes that a single file can use when uploaded.
    UPLOAD_TEMP_DIR
    The directory in which the file being uploaded is temporarily stored.
    Provide the necessary information.
    Hope it helps you to resovle the problem.
    Regards,
    Hoque

  • How to create a portlet to upload/delete files into portal pages

    I wanted to know if it is possible to create a simple UI wherein a user could choose a file from his HDD and upload it to the page as an item.I know this can be done by editing the page,but when the user clicks on edit he would have to use the default portal interface to do the same, i want to avoid precisely that.
    If possible then how do I go about making it.This UI would also require that the user be able to select from a list of previously uploaded files and delete some of them.This i require so that any authenticated portal user could access/downloaded the uploaded files given the url to the same.

    You can use the WebDAV feature in Portal Release 2 to provide a simple interface for uploading and managing files. In addition, the content management APIs can be used to build custom interfaces. These APIs are available for Portal 3.0.9 and will soon be available for Release 2. There is no Delete API, but one is planned for an upcoming release.
    Regards,
    Jerry
    PortalPM

  • Zip file not open in portal

    Dear all,
    I have encountered a problem while opening a zip file in portal it can't open. Once we click on R/3 side its working fine but the same thing happen in portal its not open if we are pressing CTLR button  than it will open in portal what's the prob .Can anyone give me some highlights on this issue.
    Regards

    Hi,
    Pls check this linK:
    Re: Opening a .zip file from Enterprise portal
    Thanks and Regards,
    Shyam.

Maybe you are looking for

  • CUBE IS NOT CLEARING THE DATA ON CONDITIONAL SCRIPT(ISSUE WITH NULLIFICATIO

    Hi, I am using AWM 10.2.0.2.0A and database is 10g Release 2 to build a cube. Before the monthly incremental load I need to clear the old data. For clearing(Nullifying) the cube I am using the new "Clear" command. The Clear command has two options. A

  • ¿Is there a substitute for MicroType TimeSavers?

    2009-04-07-02T12:40Z My apologies to you, Shlomo, but I have to ask. FrameMaker 7.1p116 Acrobat Professional 8.1.3 As they might say in New York, "Not for nothing, but . . .."  I have been unable to post to FrameUser's list and to Free Framers list. 

  • HTTP messages not received by SAP PI system

    hi all, We are using SFDC integration , where we are receiving message using HTTP Sender CC. But these messages are not seen in sxmb_moni. How can we check if the messages are reaching SAP PI . What are the settings needed for HTTP communication in S

  • Sql code for authorizing senior staff after data was inserted in the table

    Dear sirs/madams, Sub: I am using oracle9i/forms6i/reports6i and developing software for rural bank, I need sql/procedure/function code for authorizing senior staff after data was inserted in to the table by the junior staff. Thanks in advance for yo

  • Viewing photos an apple tv from mac

    I just bought apple TV. All my photos are sorted in folders in Lightroom. The photos in my picture folder are not in folders. On Apple TV I can only access "photos" which goes directly to my picture folder. How can I access my Lightroom Folders on Ap