File upload to bypass server restrictions?

The server my projects are currently required to use is a
shared host, with PHP upload file size and processing time limits
that make it impossible to work with files >500K.
Is there any way to build an upload system in Flex that can
allow users to work with files regardless of size? Everything I
have found in my searches of Flex resources all points to
server-side scripts to pass the upload target file to.
Are there any other options?

I was hoping Flex may have some way to split a file into
smaller parts or stream it in some way that wouldn't require it to
interact with PHP or other server-side script.
Madhav, Thanks for the ini_set instructions. I'll try that
and see if the host allows those .ini overrides. They have some
blocked.
Thanks
Paul

Similar Messages

  • LSMW file upload from presentation server

    Hi,
    We are using LSMW to create new Document info records and will need to upload/ attach multiple files to the DIR.
    everything is working except in the IDOC processing stage, it errors out -
    "Error while checking in and storing:
    otlta134a\pcm\test1.txt"
    Its is unable to upload file from network drive, it works successfully when the same file is uploaded from application server.
    I have worked in other LSMW projects and have successfully loaded files from network drive.
    Please let me know what configuration setup is required, is it the content server or the gateway server?
    Thanks for all your help.

    Sheetal,
    I think this is the problem due to the authorization....
    try to open the file from AL11........... if u r still getting the problem better to contact the basis guys...
    If it is the problem with the authorization... once u get this error open another session with SU53 tcode.. take the authorization object and give it to basis guys to allow the permissions to u...

  • File upload on different server. URGENT need help.

    hi,
    I am using struts common file upload to upload file from client. My problem is my application is running on server A but i want to store uploaded stream on server B without storing it on server A(i,e. without using FTP or rsync from server A to server B). Please help how can i achieve this task.
    Anuj

    Write and run a standalone application on "Server A" to accept a socket connection from "Server B" then feed the inputStream that "Server B" uses to upload the file, to the socketOutputStream that it has opened with "Server A" and have Server A save that file.

  • File upload to application server

    hi,
        i wanna upload a CSD file into the application server is there any FM to do these.
       while the program is executed i wanna check whether it is being executed in the foreground or background,if the report is executed is executed in the background a CSD file has to be generated.
    its urgent and surely pionts are granted.

    1) if it is one time only then u can make use of transaction CG3Y and CG3Z to download/upload fiel frm or to application server.
    0r
    2) refer this code to donwload/upload file on Aserver
    REPORT  ZGILL_AS    message-id rp                            .
    tables: pa0001,pa0002.
    select-options s_pernr for pa0001-pernr no intervals MODIF ID XYZ.
    parameters: p_dwnld AS CHECKBOX ,
                p_upld AS CHECKBOX  DEFAULT 'X'.
    parameters: P_DSNI(75)                   TYPE C MODIF ID ABG DEFAULT
              '/usr/local/sapdata/amit.dat' LOWER CASE.
    data: begin of itab occurs 0,
          pernr(8),
          sp1(1) value ',',
          werks(4),
          sp2(1) value ',',
          persg(1),
          sp3(1) value ',',
          persk(2),
          end of itab.
    data: s_eof(3).
    start-of-selection.
    if p_upld = 'X'.
    OPEN DATASET P_DSNI FOR OUTPUT IN LEGACY TEXT MODE.
    PERFORM FETCH_DATA.
    STOP.
    elseif p_dwnld = 'X'.
    OPEN DATASET P_DSNI FOR INPUT IN LEGACY TEXT MODE.
    IF  SY-SUBRC               NE        0.
        MESSAGE E016 WITH
          'Error opening seq. file, RC:' SY-SUBRC.
        EXIT.
      ENDIF.
    CLEAR S_EOF.
    DO.
        PERFORM FETCH_file.
        IF  S_EOF EQ 'YES'. stop. ENDIF.
    ENDDO.
    endif.
    END-OF-SELECTION.
      if itab[] is not initial.
         perform  print_file1 tables itab.
       else.
       write:/ 'No records exists'.
       endif.
    *&      Form  FETCH_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM FETCH_DATA .
    SELECT * FROM PA0001 WHERE PERNR IN S_PERNR.
    MOVE-CORRESPONDING PA0001 TO ITAB.
    TRANSFER ITAB TO P_DSNI.
    APPEND ITAB.
    ENDSELECT.
    CLOSE DATASET P_DSNI.
    ENDFORM.                    " FETCH_DATA
    *&      Form  FETCH_file
          text
    -->  p1        text
    <--  p2        text
    FORM FETCH_file .
    READ DATASET P_DSNI INTO itab.
    append itab.
    clear itab.
    IF  SY-SUBRC               NE        0.
        S_EOF = 'YES'. EXIT.
    ENDIF.
    ENDFORM.                    " FETCH_file
    *&      Form  print_file1
          text
         -->P_ITAB  text
    FORM print_file1  tables P_ITAB structure itab .
    write:/2 'EmpNo',
           14 'Personnel Area',
           34 'Emp Group',
           47 'Emp SubGroup'.
    skip 1.
    loop at p_itab.
    write:2  p_itab-pernr,
          14 p_itab-werks,
          34 p_itab-persg,
          47 p_itab-persk.
    skip 1.
    endloop.
    ENDFORM.                    " print_file1
    3) for ur third requirement make use of sy-batch field.

  • File uploading to Application server

    Hi all-
    I have a requirement to upload the FTP server file to Application server in Ascii mode. Can anyone send me the code? or atleast tell me the procedure of doing this? pls send any code or info to [email protected]
    Thanks
    m a

    Hi
    See the demo programs RSFTP00*
    Max

  • File upload to sftp server using apex

    We have an SFTP server on Linux and we want to provide users with web-based interface (Oracle APEX has been chosen for that purpose) so they can upload their flat files to our sftp server via secure transmission. is it possible to implement on APEX? What might be possible solution? or any workarouds?
    Thanks in advance.

    Hello Kevin,
    >
    if I got it right, in such a case files have to be stored in database directory, as far as I know APEX only allows to store files in database tables. is there any way to put files to a directory without storing them in tables? For instance, I want files to be placed in some oracle directory when users choose files with FILE BROWSE item and then submit the page.
    >
    Yes APEX stores files to tables, but there is a way to store them to OS directory.
    I don't know much about the plugin SaveToDisk:
    http://apex-plugin.com/oracle-apex-plugins/process-type-plugin/savetodisk_167.html
    but i have tried a blog solution by Håvard Kristiansen and it works fine:
    http://monkeyonoracle.blogspot.in/2009/10/storing-images-outside-oracle-xe-with.html
    He has given this solution to store images outside Oracle XE i.e. to a server directory.
    I had done this way:
    1) User uploads a file through file browse.
    2) The file is stored to APEX_APPLICATION_FILES or WWV_FLOW_FILES.
    3) The file is written to the OS directory using the write_to_file procedure mentioned in the blog.
    Hope it helps!
    Regards,
    Kiran

  • Regarding file uploading to application server

    hi ,
    i am facing a problem while uploading a .csv file to the application server.
    it is going to dump.
    error is ,
    the capacity limit has been reached
    pls urgent .
    points are assured.

    try these link, if still there is problem, write the error analysis from st22
    http://www.sap-img.com/ab004.htm
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=448&h2=322&h1=303&h3=448
    http://www.sapdevelopment.co.uk/file/file_uploadsap.htm
    ajay

  • File upload to web server

    I need a little help with the file upload process in flex..
    I am trying to upload a file.. i had it where i would get a cgi-script url passing as the following
    filename="filename"&filedata="data of the file"
    then my cgi script "written in C" would read from standard in.. and write the info to a file...
    now i get the following..
    ------------KM7Ef1gL6Ij5cH2ae0ei4Ij5GI3Ef1
    Content-Disposition: form-data; name="Filename"
    Botanical Garden 239.JPG
    ------------KM7Ef1gL6Ij5cH2ae0ei4Ij5GI3Ef1
    Content-Disposition: form-data; name="Filedata"; filename="Botanical Garden 239.JPG"
    Content-Type: application/octet-stream
    in the file i am trying to write.... Can anyone help me fix this problem? I am clueless at this point on what to do..
    sample code below is what i got from trying to work this...
    Thanks in advanced for anyones help..
    <code>  
    const FILE_UPLOAD_URL:String = "http://172.16.1.6:1111/cgi-bin/login.cgi"; 
    private function init():void {fileRef =
    new FileReference();fileRef.addEventListener(Event.SELECT, fileRef_select);
    fileRef.addEventListener(ProgressEvent.PROGRESS, fileRef_progress);
    fileRef.addEventListener(Event.COMPLETE, fileRef_complete);
    private function browseAndUpload():void {fileRef.browse();
    message.text =
    private function fileRef_select(evt:Event):void { 
    try {message.text =
    "size (bytes): " + numberFormatter.format(fileRef.size);fileRef.upload(
    new URLRequest(FILE_UPLOAD_URL) ); 
    trace("going to print file data in a sec... ready?"); 
    trace(fileRef.data); 
    trace(fileRef.name );}
    catch (err:Error) {message.text =
    "ERROR: zero-byte file";}
    private function fileRef_progress(evt:ProgressEvent):void {progressBar.visible =
    true;}
    private function fileRef_complete(evt:Event):void {message.text +=
    " (complete)";progressBar.visible =
    false;}
    </code>

    Here are some code....
    Forms
    <%@ page language="java" session="true" %>
    <html>
    <head>
    <script>
    </script>
    </head>
    <body>
    <form name="myform" method="post" action="fileproc.jsp" enctype="multipart/form-data">
    <input type="file" name="myfile">
    <input type="submit" value="submit">
    </form>
    </body>
    </html>Process
    <%@ page language="java" session="true" import="com.oreilly.servlet.*"%>
    <html>
    <head>
    </head>
    <body>
    <% String s = request.getParameter("myfile"); %>
    <%=s%>
    <br>
    <%
       MultipartRequest multi = new MultipartRequest(request, "C:/multipart/", 10*1024*1024); // 10MB
       Enumeration params = multi.getParameterNames();
       while (params.hasMoreElements()) {
         String name = (String)params.nextElement();
         String value = multi.getParameter(name);
         out.println(name + " = " + value);
       out.println();
       Enumeration e = multi.getFileNames();
       while(e.hasMoreElements()){
           String fname = (String)e.nextElement();
           out.println("<h1>"+fname+"</h1>");
           File fl = multi.getFile(fname);
           FileReader fr = new FileReader(fl);
           BufferedReader buf = new BufferedReader(fr);
           while(buf.ready()){
               out.println(buf.readLine());
           out.println();
           buf.close();
           fl.delete();
    %>
    </body>
    </html>Hope this helps....

  • File upload through web server to weblogic

    WAS: Weblogic 10.3
    Web Server: Sun One Web Server 6.1
    JDK: 1.4
    I've deployed a web application(*.war) to weblogic server, and try to upload a file through sun one web server(webserver) to the weblogic. The 'webserver' does nothing but bypass the request to weblogic. When I do upload a file to weblogic server directly without though webserver it's ok. I mean the uploaded file would be written to a specfied saving directory on server as soon as the upload process gets start. But with going through webserver, it does not happen immediately. After a long time passed the uploaded file begins to be written to the saving directory. The 'webserver' seems to buffer the amount as much as the file size, and then send them to weblogic. To sovle this problem I tried to change the webserver configuration(magnus.conf) as like,
    ChunkedRequestBufferSize 0, UseOutputStreamSize
    But doesn't work.
    Is there somthing of I'm missing? Get me out of this struggling.

    Thanks for your comments.
    What I'm doing is that first I made a simple upload jsp file using 'com.oreilly.servlet.MultipartRequest', and then try to upload with a html page over IE browser.
    That is,
    IE browser ( Local PC ) ---> Sun One Web Server ( Remote machine ) ---> Weblogic ( Local PC ).
    And I also peeked into the transferred data between webserver and weblogic. What I've found is that all data in the upload file would be buffered into webserver and then flushed out to weblogic at one time. I want to upload the file to weblogic server without buffering in webserver. Rather than a bug of webserver, I thinik I missed some configuration stuff of webserver, or weblogic.
    Local PC: Windows XP
    IE: 6.0
    Web Server: Sun One Web Server 6.1 SP9
    Weblogic: 10.3.0.0
    upload filesize: 4MB

  • HTML files uploading to remote server, not reflected on website.

    After minimal adjustments to an HTML file, I upload it to the remote server. The local and remote files reflect this in the "modified" line, both mirroring the same exact time. However, when I go to the actual site, the changes don't appear.
    Now, when I update the html file, say cv.html, it also makes the same changes to 2.html. When I click on the link on the website, it appears at 2.html. Somehow cv.html and 2.html are linked to each other. (I guess to keep the overall web address smaller)?
    I just took on this website to manage and I've already hit a million roadblocks trying to get it started on my end, so anyone that can solve this I would be SO grateful!

    Somehow cv.html and 2.html are linked to each other.
    Could be CV is being pulled into a framed parent page called 2.html.  Or maybe your previous web developer used server-side includes to populate page 2 with content from other site files. It's anybody's guess what may be going on until you provide us with more detailed information. A URL is preferred.  Copy & pasted code is a 2nd option but don't use e-mail, it won't come through to the web forum.
    Nancy O.

  • Upload the doc , pdf  file presentation to application server

    When upload file from presentaion to application server other then text
    file data is corruption in wed dynpro application using the UI element
    of UPLOAD. we used the code in custom application when we checked in
    T.Code : 'AL11'. only text file is showing file other then text file
    data is showing as corrupt.
    code:
    elem_sel_opt_1->get_attribute(
    EXPORTING
    name = 'DATASOURCE'
    IMPORTING
    value = gd_data ).
    CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
    EXPORTING
    in_xstring = gd_data
    IMPORTING
    out_string = gd_filedata.
    SPLIT gd_filedata AT cl_abap_char_utilities=>newline INTO TABLE
    ist_data.
    Opening the File
    OPEN DATASET gd_file_appl IN TEXT MODE FOR OUTPUT ENCODING DEFAULT. IF sy-subrc NE 0.
    WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
    EXIT.
    ENDIF.
    Transferring Data
    LOOP AT ist_data INTO wa_data.
    TRANSFER wa_data TO gd_file_appl.
    ENDLOOP.
    Closing the File
    CLOSE DATASET gd_file_appl.
    is it problem with my code. is it problem with UI element.
    for file uploading the prasentation server to appliation.
    we try with binary mode also
    Regards
    Praveen Chetpally.

    You can't tranfer the whole PDF data with just one transfer statement, instead you have to loop that table and transfer the data to the file until you reach the last row.
      open dataset pr_file for output in binary mode."text mode encoding  NON-UNICODE.
      if sy-subrc  0.
        exit.
      endif.
      loop at fp_formoutput-pdf  *****************
        transfer fp_formoutput-pdf  to pr_file.
      endloop.
      close dataset pr_file.
      clear :fp_formoutput-pdf,lv_file.

  • File upload functionality in oracle portal server

    I have got a struts portlet on oracle portal server 9.0.4.My functionality is to have a file upload facility. I tried to achieve it , but problem arises when i use any pdk taglibs like
    <pdk-html:link page="/ShowInitialSupportScreen.do?action=initial&levelOfAction=3">
    after uploading when i forward to a result.jsp. and in that file if i use a tag like above, it gives null pointer exception because
    httpservletrequest.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST)
    this returns null when my enctype is multipart/form-data. in the fileupload.jsp
    and the in the internal implementation of the pdk taglib it refers to the PortletRenderRequest from httprequest object.
    The following link says multipart is not supported by the Parallel Page Engine.
    Re: multipart/form-data jsp
    Do you have any idea on this issue. File upload seems to be a basic functionality but doesnt the Oracle portal Server support it?
    With kind regards,
    -Rafeeq

    I got the solution, we cannot achive file upload in portal server cos it does not support Multi-part Data . instead i achieved it by a separate struts application to upload and invoked it from my portal application in an popup window.

  • File Upload PJC questions

    File Upload PJC
    I have installed the File Upload PJC demo & got it working.
    We are using Forms 6i patch 8 with servlet configuration, iAS 1.0.2.2.1 on Win 2000, Oracle 8.173
    We want to upload/download files to the server & save them as BFILES in the database. I think I am on the right track but have some questions:
    What do I have to change in the PJC to increase the memory so I can upload a file > 4 MB? We will be uploading some large files. I'd also like to ability to select multiple files to upload. I don't know much about Java programming but will learn if this is the best way to accomplish this.
    I want to upgrade to Forms patch 12. I understand that it uses Jinitiator 1.3 & that it will popup a dialog when it sees a new signed Jar file & will automatically import the certificate if the user decides to trust it - but I read on the Technet forum there is a bug 2483719 - does this work with patch 12?
    We also want to use the Native JVM for IE (when it will work with XP - is this patch 13?). What do we have to change if we create a signed CAB file?
    We also need the reverse to download a file to the client - WITHOUT using web.show_document - since this does not always prompt you with a save dialog box & tries to open the file in the browser.
    Any ideas will be helpful - thanks.
    [email protected]

    Laura,
    these are many questions in one post and I try to answer it as good as I can
    We want to upload/download files to the server & save them as BFILES in the database. I think I am on the right track but have some questions:
    What do I have to change in the PJC to increase the memory so I can upload a file > 4 MB? We will be uploading some large files.
    As far as I know there is no restriction to the size of the file uploaded to the server. There exist a recommendation of to which size this bean has been tested. Due to the implementation of the Bean there are defined chunk sizes for the data passed, but this does not limit the size of a downloaded file.
    I'd also like to ability to select multiple files to upload. I don't know much about Java programming but will learn if this is the best way to accomplish this.
    Actually you will have to change the code then. First you need to set a porperty on the file dialog allowing the selection of multiple files. Next you will have to handle multiple files in the bean code. Yes, without Java you will not get there.
    want to upgrade to Forms patch 12. I understand that it uses Jinitiator 1.3 & that it will popup a dialog when it sees a new signed Jar file & will automatically import the
    certificate if the user decides to trust it - but I read on the Technet forum there is a bug 2483719 - does this work with patch 12?
    The problem is that you use a different (custom) signature for the upload bean, after modifying it, that requires the user to first grant it permissions. The bug means that this currently cannot be handled with Jinitiator 1.3.x. The work around is explained in a Whitepaper on OTN about signing Java Bean in Forms (Forms9i collateral section). There is no dependency to teh Forms patch you use, but to Jinitiator. So yes, teh work around will work there.
    We also want to use the Native JVM for IE (when it will work with XP - is this patch 13?).
    Possibly. That's the target patch.
    What do we have to change if we create a signed CAB file?
    You'll have to use the Microsoft SDK and refer to their documentation on how to create and use signed cab files. Shoudl be no big difference though.
    We also need the reverse to download a file to the client - WITHOUT using web.show_document - since this does not always prompt you with a save dialog box & tries to
    open the file in the browser.
    This is a problems with files that the Browser has a MIME type map for. If you download a file with the .gif extension, then this is a known MIME type configured in the HTTP Server. Therefore the Browser recognizes that the downloaded stream is a gif file and tries to render it. You can work around it by making sure that the downloaded file extension is not knwon by the HTTP server (Mime type application/word).
    Frank

  • Issues with file upload in flex mobile application (sharepoint as backend)

    Hello,
    I am working on flex mobile application for android platform for which we are having sharepoint as a backend.
    (Flex SDK 4.6 and AIR 3.9)
    Issue which we are facing is as follows:
    We are communicating with the backend server using webservices: example:
    <s:WebService id="kWebService" wsdl="http://www.kservice.net/kdatabaseservice.asmx?WSDL" >
                <s:operation name="AddPost"
                             resultFormat="object"
                             result="addPostResult(event)"
                             fault="postsfaulterr(event)" />
    </s:WebService>
    Above services are working fine but we are facing issue with one service which is related to file upload.
    File upload for <10 MB is working fine but when we try to upload larger file on server it fails to process.
    We are sending bytearray to the backend and backend code is writing those bytearray into file.
    We have tried many ways to overcome from this situation. like we have checked configuration for file upload size on server , we have tried wcf services as well. Please help us on this criticle point as soon as possible
    Thanks
    Dhwani

    Prashant8809 wrote:
    Hi
    >
    > I have already gone through the video by Thomas Jung for multiple file upload but it saves the contents in server and not in >transparent table. So please suggest me alternative solutions.
    >
    >
    > Regards
    > Prashant Chauhan
    What do you mean that my video saves the contents int he server and not in transparent table?  I save the data into a temporary database table so it can be accessed by the parent WDA session. From there the WDA session can do whatever it wants with it.  What do you mean by transparent table - that would be a database table. Do you actually mean internal table?  if so, just read the data from the temporary database table into memory.

  • File upload not working on Mac OSX

    I've tried several of the Flex file upload components, in all
    cases they don't work correctly when used on a Mac. I've tested
    both flash player 9 and the latest 10 release. The file uploads to
    the server, but the progress bar doesn't update and the upload
    complete event never fires. To the end user, it looks like the app
    isn't doing anything at all!
    Any advice on how to get this working? If you know of any
    file upload components that are already tested and working on the
    Mac version of flash - that would be a great help as well!
    Thanks!

    If you Google it you will find that this is a known issue, it surprised me since I spent days looking at my code.
    I found possible solutions here, but none worked for me it seems that it worked for many other people.
    http://www.abdulqabiz.com/blog/archives/2006/06/09/workaround-filereference-oncomplete-is- not-fired-on-mac-os/
    Hope Mac and Adobe will have lunch one day and figure it out.
    Ben

Maybe you are looking for