Bug uploading static files

I notice one bug when uploading static files. If you try to upload static file with same name as existing one and to same application you'll get error "Static file name already exists" and the file will be uploaded with flow_id 0 (view apex_application_files), but it won't be visible in APEX Builder. Also, when you try to download this file from builder, it looks like APEX randomly chooses which one to download.
I've tried this on apex.oracle.com and same thing.
Br,
Marko

Hi Marko,
Currently APEX doesn't have any version control for static files so I suggest adding a version number to the file name when uploading.
Thanks
Paul

Similar Messages

  • Viewing uploaded static files

    Hello.
    We have a product demo we created in Flash file format that we are trying to post onto our Apex application's site.
    The demo is comprised of a few files that work together as long as they sit in the same directory. They are of the following format:
    html
    mp4
    swf
    pnp
    xml
    js
    I loaded them one by one into my ApEx application as static files.
    When I reference them through my application, they don't work. The flash presentation does not run.
    Any thought what it might be?
    FYI, we have uploaded other static files into our app for other purposes (doc, pdf). Those work just fine.
    thanks
    Boris

    Boris,
    The demo is comprised of a few files that work together as long as they sit in the same directory.
    I think the problem is what I've quoted from your message. Flash file needs the other files within the same directory and static files are stored on the database and called by a function.
    I think the solution is to upload your files to the server filesystem.
    Paulo Vale
    http://apex-notes.blogspot.com

  • Apex 4 static files names include file path

    Hello,
    I am using Apex 4 with the latest patch.
    When I go into Shared Components and upload Static Files or CSS it is including the full file path as the name of the file when it is uploaded. Apex 3 did not do this, it simply used the file name.
    For example, if I want to upload a file called "mystyles.css" and it is located in "C:\css\app1\work" the file when uploaded will be called: C:\css\app1\work\mystyles.css
    When I want to reference this file in Apex code I need to call it C:\css\app1\work\mystyles.css instead of just mystyles.css.
    Is there a way to make it use only the file name and not the file path?

    Which browser and version are you using?
    If it's IE, check the config for “Include local directory path when uploading files” security settings.
    {message:id=4169405}
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx

  • APEX 3.1.2 Static File Upload Issues

    We are still running on APEX 3.1.2 though we hope to go to 4 very soon.
    We had a production problem this past week that is perplexing. I have seen other posts referencing similar issues but no solutions.
    We have an application that has several Static File Javascripts (.js). We already ran into the IE Upload bug so we only upload in Mozilla now.
    We had changes to one of the .js files (identity.js). I deleted the old file using the Shared Components screen and uploaded the new one. The action was "Successful" but the file was still the old version. We deleted a file of 73 lines of code and uploaded a new version of 28 lines. After successful upload, we still would get the 73 line version . The app was still getting that version too.
    I deleted it many times and tried again. I ran scripts to do both the delete and upload. I even deleted the file manually from the FLOWS_FILES table that held it. Still got the old version.
    We bounced the server (thinking it was cached somewhere) - still got the old version. Finally, in desperation, I started cloning the app to another app number in another Workspace. Since we use aliases, I thought I could use a clean Workspace and uplad the new file there. This worked but - suddenly the old Workspace started using the correct file.
    Is ther some secret cache somewhere that needs to be cleared out? I did not want to start randomly clearing out caches and there is no documentation on this issue.
    Is it something about our config - we have Oracle HTTP Server, OC4J, and modplsql for this environment with a 10g database.
    Any insight would be appreciated - my manager does not like "it fixed itself magically".

    We ruled out the browser caching by trying the app on several other people's PCs.
    I am thinking it is being cached somewhere in the APEX server environment but cannot find any documentation on where or what that might be.
    I think I might have triggered a refresh when I was trying to implement a cloned version (in a different Workspace). It seems that the scope of a JS file is within its Workspace so we figured that a new Workspace would treat the changed file as a new file - and it did. During this process, we had duplicate ALIAS for a minute and I think that confused the APEX App Engine and triggered the refresh.
    But that is a SWAG opinion.
    I also thought of "versioning" the JS files but our developers are not too keen. If we don't find another solution, that may be what we have to do.

  • Static Files Bug?

    I've noticed that deleting a static file from Shared Components doesn't actually remove the file from the files table.
    When running :
    SELECT * FROM APEX_WORKSPACE_FILES WHERE FILE_NAME LIKE 'bulk_import_%'
    I see a series of old files that have been 'deleted'.
    This is a problem because the 'Static Files' page shows the last record, but the download and edit links give you the first record.
    This prevents you from updating a file with the same file name. If you do the old file is the one you get when you try to download it.
    You can upload a new file with a new file but then you have to update every single link you have to that file.
    Is this a known bug? I've tried searching metalink but didn't find anything useful.
    Any tips would be appreciated.
    Matt

    Matt,
    I also encountered the same issue. I think, it is a bug.
    Regards, Tamas

  • Uploading javascript file under static files

    We uploaded the javascript file under static files. By default the mime type is "application/octet-stream". We are accessing this js file in our application however this is not working.
    Is this because the mime type is "application/octet-stream"?
    Please let us know how to change the mime type to javascript.

    Actually, we were having the same problem and determined it to be an IE bug. If we upload the .js file using Firefox, it saves as the correct mime type, x-javascript. If we use IE8, it gets uploaded as octet. Because of this, Firebug did not recognize the file, we got the following error: "the resource from this url is not text: " with the link to the uploaded file. Hence, none of the functions included in the file worked in our application.

  • Bug: can't access static files with space in the path

    Please let me know if this a a wrong place to file bug reports.
    I installed webserver7u4 and when I try to access a static file within my war which contains a space in the path, I get HTTP404.
    $ ls webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black\ spinner/1.png
    webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black spinner/1.png
    $ wget -O /dev/null "http://localhost:8080/images/ddtree/black spinner/1.png
    "--13:47:06-- http://localhost:8080/images/ddtree/black%20spinner/1.png
    => `/dev/null'
    Resolving localhost... 127.0.0.1, ::1
    Connecting to localhost|127.0.0.1|:8080... connected.
    HTTP request sent, awaiting response... 404 Not found
    13:47:06 ERROR 404: Not found.Now, if I create a symlink to a path that contains url encoded space, everything works:
    $ ls -l webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black%20spinner
    lrwxrwxrwx 1 root root 13 Aug 1 2008 webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black%20spinner -> black spinner
    $ wget -O /dev/null "http://localhost:8080/images/ddtree/black spinner/1.png"
    --13:49:37-- http://localhost:8080/images/ddtree/black%20spinner/1.png
    => `/dev/null'
    Resolving localhost... 127.0.0.1, ::1
    Connecting to localhost|127.0.0.1|:8080... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1,446 (1.4K) [image/png]
    100%[======================================================================== =======================================>] 1,446 --.--K/s
    13:49:37 (89.76 MB/s) - `/dev/null' saved [1446/1446]So to me it appears that webserver doesn't decode the path before searching the local file system, which to me looks like a bug.
    Let me know if you need more info.
    cheers,
    Igor

    HTTP/1.1 RFC [http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2|http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2]
    3.2 Uniform Resource Identifiers
    URIs have been known by many names: WWW addresses, Universal Document Identifiers,
    Universal Resource Identifiers [3], and finally the combination of
    Uniform Resource Locators (URL) [4] and Names (URN)  ... where
    3 is a link to [http://www.ietf.org/rfc/rfc1630.txt|http://www.ietf.org/rfc/rfc1630.txt] section BNF for specific URL schemes
      httpaddress              h t t p :   / / hostport [  / path ] [ ?search ]
      path                   void |  segment  [  / path ]
      segment                xpalphas
      xpalphas               xpalpha [ xpalphas ]
      xpalpha                xalpha | +
      xalpha                 alpha | digit | safe | extra | escape
      alpha                  a | b | c | d | e | f | g | h | i | j | k |
                             l | m | n | o  | p | q | r | s | t | u | v |
                             w | x | y | z | A | B | C  | D | E | F | G |
                             H | I | J | K | L | M | N | O | P |  Q | R |
                             S | T | U | V | W | X | Y | Z
      digit                  0 |1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
      safe                   $ | - | _ | @ | . | &  | + | -
      extra                  ! | * |  " |  ' | ( | )  | ,
      escape                 % hex hex
      hex                    digit | a | b | c | d | e | f | A | B | C | D | E | F{code}
    4 is a link to RFC 1738 Uniform Resource Locators (URL)
    [http://www.ietf.org/rfc/rfc1738.txt|http://www.ietf.org/rfc/rfc1738.txt] section 5. BNF for specific URL schemes
    has :
    {code}
    httpurl        = "http://" hostport [ "/" hpath [ "?" search ]]
    hpath          = hsegment *[ "/" hsegment ]
    hsegment       = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
    uchar          = unreserved | escape
    escape         = "%" hex hex
    hex            = digit | "A" | "B" | "C" | "D" | "E" | "F" |
                                 "a" | "b" | "c" | "d" | "e" | "f"
    unreserved     = alpha | digit | safe | extra
    alpha          = lowalpha | hialpha
    lowalpha       = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" |
                     "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" |
                     "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" |
                     "y" | "z"
    hialpha        = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" |
                     "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" |
                     "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z"
    digit          = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" |"8" | "9"
    safe           = "$" | "-" | "_" | "." | "+"
    extra          = "!" | "*" | "'" | "(" | ")" | ","
    {code}
    I do not see space in these RFCs for httpurl.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error When Uploading a CSS file or  Static file

    When I am uploading a CSS or Static file , I get the following error. But I can upload images files with no issues.
    ORA-02291: integrity constraint (FLOWS_FILES.WWV_FLOW_FILE_OBJ_FK) violated - parent key not found
    Oracle XE upgraded to Apex 3.1
    Please help
    George

    Yes, if you upload an image on a normal Oracle Apex Database its stored in the DB.
    But, if you remember, when you configire apex you specify an images directory /i/.
    Under this directory you will find all the images that apex uses as well as css files, etc.
    If you place your image in this directory you can reference it my modifying the appropriate stylesheet/template.
    So, for example, you cna place your own stylesheets in the appropriate directory on the server.

  • Embeding Uploaded PDF Static Files - Problems

    Good morning all.
    I have an application where users enter details and need to read through a selection of documents depending on what details they entered. I have uploaded 5 documents to my Apex server and used the following code to embed them inline (within the HTML itself)
    <EMBED
    SRC="http://server_name:7777/pls/apex/wwv_flow_file_mgr.get_file?p_security_group_id=824213546944709&p_fname=file1.PDF&p_inline=NO"
    HEIGHT=500 WIDTH=800>This code was taken from the links on the Shared Components -> Static Files page in the Application builder
    This all worked file on my development server, all the documents were displaying inline with the HTML document (Example - http://www.planetpdf.com/mainpage.asp?webpageid=1682 Example #1)
    However, I realised one of the documents being displayed was wrong - file 1 was showing instead of file 2. I had embeded the wrong file in the page. So I just changed the &p_fname to file2.pdf. When I ran the page, all the other embeded documents were working fine, but the recently updated one was popping out of the window, and the region where I embeded the file was blank.
    Now, I just exported my application to a new server for testing, and have had to change all the embeded regions to point to the newly uploaded files on the new server. None of these now show anything. They either show the little picture icon (red square, blue circle, red triangle) if I include the &p_inline=YES code, the same icon if I say &p_inline=NO instead, or if I drop this argument, the entire region is blank, and the Adobe PDF icon displays streched across the region after a new seconds.
    Any hints?
    Cheers,
    Kate

    Thanks for that Denes.
    I just have one question - the source for your XML Report region shows the following code
    DECLARE
       v   VARCHAR2 (200);
    BEGIN
       v :=
             'SELECT '
          || '''<iframe src="#OWNER#.File_Table_Disp_Pr?p_file='
          || 2967670122524254593
          || '"'
          || ' height="880" width="600"></iframe>'''
          || ' document_display'
          || ' FROM DUAL';
       RETURN v;
    END;The "2967670122524254593" refers to that file that was uploaded, yes? How do I find this number for my uploaded documents? I think it was a table somewhere, but I can't for the life of me remember which one.
    Update: I found it - apex_applcation_files. I should just be able to insert the ID of the document I want in there, yes? I copied my document ID number (select id from apex_application_files) but the document is 404'ing on me.
    help?

  • Queries on RAR 5.3 static files upload?

    Hi all,
    We have some doubts in uploading static text files in RAR 5.3 version. Can anybody please clarify at the earliest?
    1) Can we prepare the SoD rule set in the static text files (as provided by SAP during installation)
    till Action (t- code) level conflicts and upload the same. After that cam we add/change the
    authorization objects manually as per the business requirement? Whether this is possible?
    Does a small SPACE in the text file will impact the rule set uploading?
    2) If we are configuring the rule set manually i.e when we are assigning t-codes to the functions,
    we believe the authorization objects will gets picked up automatically from the back end system for that particular t-code and the object values can be edited as per the SoDs of the business requirement? Is our understanding correct?
    If this is true, refer to question 1 whether we will get the authorization objects in case of
    uploading the text files (Business process, Funcitons, rule set,action level) only at action
    level?
    3) Once if we have used the text files for uploading the rule set can we edit them manually i..e disabling  the t-codes from function, deleting the risk ids etc.,. ORELSE even the changes has to be made in the text files and upload again replacing the existing rule set whenever there are changes in the SoD rule set?
    Thanks and Best Regards,
    Srihari.K

    issue resovled

  • Accessing substitution variables in static uploaded javascript file

    Hi there,
    I just created variables and a pageinit function in my page header and try to access these variables (Flow_Id, Page_Id etc) within a js-file I uploaded into workspace static files.
    I try to use them within an URL ( e.g. "f?p="+ Flow_Id + ":100:" + Session_Id ), but they are -undefined- and thus lead to a 404-Page!
    Here is the code:
    onload="pageinit()"             //in page html body attribute
    //and the following code in the html header
    <script type="text/javascript">
    <!--
    var Flow_Id; // application id
    var Page_Id; // page id
    var Session_Id; // session id
    var Request; // request value
    function pageinit(){
    Flow_Id = html_GetElement('pFlowId').value; // application id
    Page_Id = html_GetElement('pFlowStepId').value; // page id
    Session_Id = html_GetElement('pInstance').value; // session id
    Request = html_GetElement('pRequest').value; // request value
    //-->
    </script>Can someone please point me to the right direction!?
    Thank you very much.
    Regards
    Johnny

    Hi Paul,
    I tried with IE 8 now and could at least find out now, which lines of code are responsible for the error:
    addmenu(menu=[                    
    "mainmenu",                    
    69,                         
    153,                         
    1,                         
    style1,                         
    1,                         
    "left",                         
    1,                          
    0,                         
    ,"Home","f?p=" + $v('pFlowId') + ":100:" + $v('pInstance'),,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
    ,"Tab2","show-menu=list01","tab2.html","",1
    ,"Tab3","f?p=300:1:","tab3.html","",1
    ,"Tab4","show-menu=list04","tab4.html","",1
    ])It must be the way I try to create the first URL (for Home) I already mentioned, because if I hard-code the URL, it works without errors.
    I could hard-code the URL, but then I always get a new session-id. So, at least I need to find a way of accessing the current session-id here.
    As mentioned before, I also tried to set global variables within a javacript function in the page header and assigning the current values for the session and app-id and reference these variables within the js-file I uploaded to the static files. But that did not work either. These variables were undefined.
    I guess they were undefined because at the time when the function was processed the variable might not have been set yet.
    But I followed exactly the solution Carl Backstrom mentioned in some of his posts some years ago. God bless him.
    I am not a javascript expert, so maybe you got a hint for me!?
    Thanks again for your support.
    Johnny

  • Static file with application: deleted on app install/upgrade (bug?)

    Hi,
    say we have an app (app_id: 100) with abcd.js static file associated with this application (so this is not a workspace static file). Export this app, then import back plus install to the same workspace but on a different and existing application id. Now this new (upgraded) app has abcd.js associated with it in static files, but the original app 100 hasn't. Is this expected? I'm on apex 4.1.1.00.23
    Edited by: tlajos on Aug 15, 2012 6:05 AM

    bump: seems to be present in 4.2 current EA, too

  • Non-application specific static files not visible in shared components

    Hello,
    We recently upgraded to APEX 4.0.2.00.07. In the past we have uploaded a number of static files with no specific application linked to them.
    Now, when I search on these files using Shared Components -> Static Files, I don't find them back.
    But, if I directly query the view APEX_WORKSPACE_FILES (using the APEX schema owner), I see all the files. They have APPLICATION_ID = 0 and APPLICATION_NAME is empty.
    Is this a bug? I couldn't reproduce this with newly added static files, whether I specify an application or not.
    Matthias
    Edited by: mhoys on Mar 1, 2011 11:40 AM

    Owen:
    Excellent idea/perspective...I did not think of that.  Each of our forms/screens has a seperate class file.  Each class file has a CreateForm() routine that is called when an instance of the class is intiated behind the menu selection. 
    Here is a block of code In Main.vb I use to execute a menu selection:
    Case "MPA"
      '8/30/07 EJD - Work Order Parameters Screen
       If GetFormCount(G_MPAMaint_Form_Type).ToString = "0" Then
               Dim MPAForm As New MPA
               BubbleEvent = False
        Else
               UpdateStatus("Another MPA maintenance screen is already open", SAPbouiCOM.BoStatusBarMessageType.smt_Error)
               BubbleEvent = False
        End If
    So, I can utilize this code in the case statement where I was doing the ActivateMenu if I hear you right.  Now, can you help me with how I would pass the
    variables instead of making them Public Shared in the Main class?  Or is it ok to expose them that way?
    I Appreciate the help,
    Ed

  • Problems with import of static files/images

    I have a series of static files (such as jquery/jquery ui libraries) that we have been storing in WORKSPACE_IMAGES. We had hoped to be able to export the static files and use our automated build process to import the files via sqlplus. However, I have run into problems with the files being "corrupted"...either they don't show up at all in firebug, or one file contains parts of another file, rendering it useless. If I delete these files and re-upload them separately through the builder, then I don't have any problems.
    I can only assume there is some perhaps special character or some other issue that I'm not aware of either during the export process or the import process.
    My first preference would be to store these files on the app server, but unfortunately that's not on the table at the moment.
    Any ideas what would be causing the issues here?
    Any help would be appreciated.
    Thanks in advance
    Jeff

    Hello all,
    This is an old thread, but it's an old problem that I'm concerned may still be continuing.
    We're moving from 3.2 to 4.1. While copying our applications from 3.2 to a test 4.1 installation, we did a static file export for "All static files" from 3.2 and did an import to 4.1. We're seeing the same behavior that I and others have reported in the past - any static files that are javascript are corrupted when "all static files" was chosen. Exporting/importing each javascript static file individually appears to work fine.
    If the bug was in 3.2 in that it was generating a corrupted export file when "all static files" is chosen, then I'm not concerned - we're moving from 3.2 anyway. But, if the issue is in the import then it must still exist in 4.1 and that would be a concern.
    Does anyone know if this was a recognized bug in 3.2 and has since been corrected?
    Thanks!
    John

  • Trying to get lighttpd to upload a file through perl cgi

    Hi, I'm quite new in these things, so I might be doing something obvious wrong, but I'd like some help on this.
    I'm trying to make a webpage where people can upload files, this is the html page (located at /srv/html/index.html):
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>lighttpd Test Page</title>
    </head>
    <body>
    <div style="text-align:center; font: 12px sans-serif;">
    <span style="font-weight: bold; font-size: 20px;">
    Arch Linux
    </span>
    <br><br>
    This is a test page for the lighttpd Web Server.<br>
    <form action="/cgi-bin/upload.pl" method="post" enctype="multipart/form-data">
    <input type="file" name="fileName" size="40">
    <input type="submit" value="Send">
    <input type="reset">
    </form>
    </div>
    </body>
    </html>
    And the backend (in /srv/html/cgi-bin/upload.pl):
    #!/usr/bin/perl -wT
    use strict;
    use CGI;
    use CGI::Carp qw ( fatalsToBrowser );
    use File::Basename;
    $CGI::POST_MAX = 1024 * 1024 * 5000; # 5GB filesize limit
    my $safe_filename_characters = "a-zA-Z0-9_.-";
    my $upload_dir = "/srv/jail/";
    my $query = new CGI;
    my $filename = $query->param("fileName");
    if ( !$filename )
    print $query->header ( );
    print "There was a problem uploading your file (filesize limit may be exceeded).";
    exit;
    my ( $name, $path, $extension ) = fileparse ( $filename, '\..*' );
    $filename = $name . $extension;
    $filename =~ tr/ /_/;
    $filename =~ s/[^$safe_filename_characters]//g;
    if ( $filename =~ /^([$safe_filename_characters]+)$/ )
    $filename = $1;
    else
    die "Filename contains invalid characters";
    my $upload_filehandle = $query->upload("fileName");
    open ( UPLOADFILE, ">$upload_dir/$filename" ) or die "$!";
    binmode UPLOADFILE;
    while ( <$upload_filehandle> )
    print UPLOADFILE;
    close UPLOADFILE;
    print $query->header ( );
    print <<END_HTML;
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Done!</title>
    </head>
    <body>
    <p>Uploading done!</p>
    </body>
    </html>
    END_HTML
    My server config:
    # lighttpd configuration file
    # use it as a base for lighttpd 1.0.0 and above
    # $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
    ############ Options you really have to take care of ####################
    ## modules to load
    # at least mod_access and mod_accesslog should be loaded
    # all other module should only be loaded if really neccesary
    # - saves some time
    # - saves memory
    server.modules = (
    # "mod_rewrite",
    # "mod_redirect",
    # "mod_alias",
    "mod_access",
    # "mod_cml",
    # "mod_trigger_b4_dl",
    # "mod_auth",
    # "mod_status",
    # "mod_setenv",
    # "mod_fastcgi",
    # "mod_proxy",
    # "mod_simple_vhost",
    # "mod_evhost",
    # "mod_userdir",
    "mod_cgi",
    # "mod_compress",
    # "mod_ssi",
    # "mod_usertrack",
    # "mod_expire",
    # "mod_secdownload",
    # "mod_rrdtool",
    "mod_accesslog" )
    ## a static document-root, for virtual-hosting take look at the
    ## server.virtual-* options
    server.document-root = "/srv/http/"
    ## where to send error-messages to
    server.errorlog = "/var/log/lighttpd/error.log"
    # files to check for if .../ is requested
    index-file.names = ( "index.php", "index.html",
    "index.htm", "default.htm" )
    ## set the event-handler (read the performance section in the manual)
    # server.event-handler = "freebsd-kqueue" # needed on OS X
    # mimetype mapping
    mimetype.assign = (
    ".pdf" => "application/pdf",
    ".sig" => "application/pgp-signature",
    ".spl" => "application/futuresplash",
    ".class" => "application/octet-stream",
    ".ps" => "application/postscript",
    ".torrent" => "application/x-bittorrent",
    ".dvi" => "application/x-dvi",
    ".gz" => "application/x-gzip",
    ".pac" => "application/x-ns-proxy-autoconfig",
    ".swf" => "application/x-shockwave-flash",
    ".tar.gz" => "application/x-tgz",
    ".tgz" => "application/x-tgz",
    ".tar" => "application/x-tar",
    ".zip" => "application/zip",
    ".mp3" => "audio/mpeg",
    ".m3u" => "audio/x-mpegurl",
    ".wma" => "audio/x-ms-wma",
    ".wax" => "audio/x-ms-wax",
    ".ogg" => "application/ogg",
    ".wav" => "audio/x-wav",
    ".gif" => "image/gif",
    ".jar" => "application/x-java-archive",
    ".jpg" => "image/jpeg",
    ".jpeg" => "image/jpeg",
    ".png" => "image/png",
    ".xbm" => "image/x-xbitmap",
    ".xpm" => "image/x-xpixmap",
    ".xwd" => "image/x-xwindowdump",
    ".css" => "text/css",
    ".html" => "text/html",
    ".htm" => "text/html",
    ".js" => "text/javascript",
    ".asc" => "text/plain",
    ".c" => "text/plain",
    ".cpp" => "text/plain",
    ".log" => "text/plain",
    ".conf" => "text/plain",
    ".text" => "text/plain",
    ".txt" => "text/plain",
    ".dtd" => "text/xml",
    ".xml" => "text/xml",
    ".mpeg" => "video/mpeg",
    ".mpg" => "video/mpeg",
    ".mov" => "video/quicktime",
    ".qt" => "video/quicktime",
    ".avi" => "video/x-msvideo",
    ".asf" => "video/x-ms-asf",
    ".asx" => "video/x-ms-asf",
    ".wmv" => "video/x-ms-wmv",
    ".bz2" => "application/x-bzip",
    ".tbz" => "application/x-bzip-compressed-tar",
    ".tar.bz2" => "application/x-bzip-compressed-tar",
    # default mime type
    "" => "application/octet-stream",
    # Use the "Content-Type" extended attribute to obtain mime type if possible
    #mimetype.use-xattr = "enable"
    ## send a different Server: header
    ## be nice and keep it at lighttpd
    # server.tag = "lighttpd"
    #### accesslog module
    accesslog.filename = "/var/log/lighttpd/access.log"
    ## deny access the file-extensions
    # ~ is for backupfiles from vi, emacs, joe, ...
    # .inc is often used for code includes which should in general not be part
    # of the document-root
    url.access-deny = ( "~", ".inc" )
    $HTTP["url"] =~ "\.pdf$" {
    server.range-requests = "disable"
    # which extensions should not be handle via static-file transfer
    # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    ######### Options that are good to be but not neccesary to be changed #######
    ## bind to port (default: 80)
    server.port = ###
    ## bind to localhost (default: all interfaces)
    #server.bind = "127.0.0.1"
    ## error-handler for status 404
    #server.error-handler-404 = "/error-handler.html"
    #server.error-handler-404 = "/error-handler.php"
    ## to help the rc.scripts
    server.pid-file = "/var/run/lighttpd/lighttpd.pid"
    ###### virtual hosts
    ## If you want name-based virtual hosting add the next three settings and load
    ## mod_simple_vhost
    ## document-root =
    ## virtual-server-root + virtual-server-default-host + virtual-server-docroot
    ## or
    ## virtual-server-root + http-host + virtual-server-docroot
    #simple-vhost.server-root = "/srv/http/vhosts/"
    #simple-vhost.default-host = "www.example.org"
    #simple-vhost.document-root = "/htdocs/"
    ## Format: <errorfile-prefix><status-code>.html
    ## -> ..../status-404.html for 'File not found'
    #server.errorfile-prefix = "/usr/share/lighttpd/errors/status-"
    #server.errorfile-prefix = "/srv/http/errors/status-"
    ## virtual directory listings
    #dir-listing.activate = "enable"
    ## enable debugging
    #debug.log-request-header = "enable"
    #debug.log-response-header = "enable"
    #debug.log-request-handling = "enable"
    #debug.log-file-not-found = "enable"
    ### only root can use these options
    # chroot() to directory (default: no chroot() )
    #server.chroot = "/"
    ## change uid to <uid> (default: don't care)
    server.username = "http"
    ## change uid to <uid> (default: don't care)
    server.groupname = "http"
    #### compress module
    #compress.cache-dir = "/var/cache/lighttpd/compress/"
    #compress.filetype = ("text/plain", "text/html")
    #### proxy module
    ## read proxy.txt for more info
    #proxy.server = ( ".php" =>
    # ( "localhost" =>
    # "host" => "192.168.0.101",
    # "port" => 80
    #### fastcgi module
    ## read fastcgi.txt for more info
    ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
    #fastcgi.server = ( ".php" =>
    # ( "localhost" =>
    # "socket" => "/var/run/lighttpd/php-fastcgi.socket",
    # "bin-path" => "/usr/bin/php-cgi"
    #### CGI module
    cgi.assign = ( ".pl" => "/usr/bin/perl",
    ".cgi" => "/usr/bin/perl" )
    #### SSL engine
    #$SERVER["socket"] == "0.0.0.0:443" {
    ssl.engine = "enable"
    ssl.pemfile = "/etc/ssl/private/lighttpd.pem"
    # server.errorlog = "/var/log/lighttpd/error-ssl.log"
    # accesslog.filename = "/var/log/lighttpd/access-ssl.log"
    # server.document-root = "/home/lighttpd/html-ssl"
    #### status module
    #status.status-url = "/server-status"
    #status.config-url = "/server-config"
    #### auth module
    ## read authentication.txt for more info
    #auth.backend = "plain"
    #auth.backend.plain.userfile = "lighttpd.user"
    #auth.backend.plain.groupfile = "lighttpd.group"
    #auth.backend.ldap.hostname = "localhost"
    #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
    #auth.backend.ldap.filter = "(uid=$)"
    #auth.require = ( "/server-status" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "user=jan"
    # "/server-config" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "valid-user"
    #### url handling modules (rewrite, redirect, access)
    #url.rewrite = ( "^/$" => "/server-status" )
    #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
    #### both rewrite/redirect support back reference to regex conditional using %n
    #$HTTP["host"] =~ "^www\.(.*)" {
    # url.redirect = ( "^/(.*)" => "http://%1/$1" )
    # define a pattern for the host url finding
    # %% => % sign
    # %0 => domain name + tld
    # %1 => tld
    # %2 => domain name without tld
    # %3 => subdomain 1 name
    # %4 => subdomain 2 name
    #evhost.path-pattern = "/srv/http/vhosts/%3/htdocs/"
    #### expire module
    #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
    #### ssi
    #ssi.extension = ( ".shtml" )
    #### rrdtool
    #rrdtool.binary = "/usr/bin/rrdtool"
    #rrdtool.db-name = "/var/lib/lighttpd/lighttpd.rrd"
    #### setenv
    #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
    #setenv.add-response-header = ( "X-Secret-Message" => "42" )
    ## for mod_trigger_b4_dl
    # trigger-before-download.gdbm-filename = "/var/lib/lighttpd/trigger.db"
    # trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
    # trigger-before-download.trigger-url = "^/trigger/"
    # trigger-before-download.download-url = "^/download/"
    # trigger-before-download.deny-url = "http://127.0.0.1/index.html"
    # trigger-before-download.trigger-timeout = 10
    ## for mod_cml
    ## don't forget to add index.cml to server.indexfiles
    # cml.extension = ".cml"
    # cml.memcache-hosts = ( "127.0.0.1:11211" )
    #### variable usage:
    ## variable name without "." is auto prefixed by "var." and becomes "var.bar"
    #bar = 1
    #var.mystring = "foo"
    ## integer add
    #bar += 1
    ## string concat, with integer cast as string, result: "www.foo1.com"
    #server.name = "www." + mystring + var.bar + ".com"
    ## array merge
    #index-file.names = (foo + ".php") + index-file.names
    #index-file.names += (foo + ".php")
    #### include
    #include /etc/lighttpd/lighttpd-inc.conf
    ## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
    #include "lighttpd-inc.conf"
    #### include_shell
    #include_shell "echo var.a=1"
    ## the above is same as:
    #var.a=1
    The site is running over https with a self signed ssl-cert, if that matters. If I try to upload a file, the browser just quickly reloades the page, the filename still in the input field. The file isn't uploaded and the page that the script should display when completed doesn't show neither.
    Does anyone know how to troubleshoot this? I'm not getting any errors, it just doesn't work..

    I haven't used Websphere before so I can't say much about that. Try putting <%@ page language="Java" %> at the top of your jsp page.
    Try putting your java files into a package and see if that helps. I read somewhere that Tomcat once had issues with running classes that weren't in a package. Make sure to put the package statement at the top of your Java files if you do.
    Websphere says it caught an unhandled exception. Instead of having your method throw and Exception put your code in a try-catch block and then print a stack trace to see if it says anything when it trys to read and write data.
    Try{
        PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("doUpload.txt")));
        ServletInputStream in = request.getInputStream();
        int a=0;
        a=in.read();
        while (a!= -1){
            pw.print((char) a);
            a=in.read();
        pw.close();
    }catch(Exception e){
      e.printStackTrace();
    }Sorry I can't really give you more help.
    -S-

Maybe you are looking for

  • MXF Missing Audio in Media Browser, or Is it?

    Happy Fourth of July to all my American friends.  Did you know it's going to be the Forth of July up in Canada and everywhere else in the world tomorrow too?   Can't tell you how many times I've been asked if we have the Forth of July in Canada.  Duh

  • Go directly to the end of a scroll

    Hello! I have a JPanel with a table inside, and avery time I add rows to this table I want the scroll to go to the end... to show the last row, but I dont know how to do this, so any help would be great. Here is my code:     class paneltable extends

  • ITunes does not start anymore when connecting iphone

    Hello, since my latest upgrade of itunes (still under snow leopard) itunes does not start anymore when connecting my iPhone 4 to my Macbook Pro. Meanwhile I upgraded to Lion and installed the latest itunes patch but same behavior, Does anybody has an

  • Consolidation as per Equity Method_SEM-BCS

    Hi Experts, I am doing consolidation as per Equity Method. I am using Additional financial data for Investments and Equity. However, when I execute C/I task I get an error message saying that Investments are missing for activity 01 in  Investee unit

  • Add apps to desktop

    How do I add my apps from my Icloud to my MacBook air desktop? I can see them in Itunes but cannot access them or download to my desktop?