Upload Location Problem

Hi all,
I have a web application which is used to upload file to the server.
I used Java web services developer pack (Tomcat).
The tomcat is running from a Windows 2000 small business server and other users just share a drive of that server and they use Windows XP pro.
The problem is when they want to upload a document for example they are uploading from C drive of their laptop or Desktop, they get an error message that "The file not found." But the file is already there.
Now i found out why it is happening, Since it is running on windows server and that server have a DRIVES such as C,D,E,F when the user click submit button the program thinks that it is uploading from server drive but it is actually coming from the clients laptop drive to server drive.
Now if i upload anything from server drive it works, but that is not my mission my program should be flexible so that any client when they are connected to the server, can upload anything from the their laptop to the server. Can anyone please help me?
I saw on some websites that we can upload CV to a job site. But that time we upload from our machine to Web server. I know it is possible please can anyone help me.
Thanks.

Java/JSP/Tomcat knows nothing about operating systems, and nothing about your local network.
The server can never access the client machine via JSP.
The standard way of doing it over internet is to use an <input type="file"> in your jsp page, which uploads the file to the server.
The server then has to receive the file as a stream of bytes from the request (see jakarta commons [url http://jakarta.apache.org/commons/fileupload/] File upload
The server can then save that file using the standard java.io package.

Similar Messages

  • XSD Location Problem.

    Hi Gurus,
    After starting the node in a cluster environemnt, often receiving "Unable to load Translation schemas from for http://xmlns.oracle.com/BRM/schemas/BusinessOpcodes due to: XSD Location problem.
    XSD Loading problem."
    This is mainly observed in BRM schemas, has anyone exprienced this? what shall be the workaround/solution other than restarting the container/application?
    We are using SOA 10.1.3.4 MLR 8 and Oracle AIA 2.4.
    Please help.

    The BRM schemas are present in the AIA Components which will be referred by the load balancer url in a clustered environment. However, if in any of the nodes, the url for AIA Components has the local node url instead of load balancer url, this issue occurs.
    Identify the node which is giving the issue (shutting down one node at a time and retrying the operation which gives the error). In the node which has the issue, try doing a search on AIA components to find out if there is any reference using local node url instead of load balancer.
    If you find any, replace with the load balancer url. I had faced a similar issue and I was able to resolve it as I have mentioned above.
    Cheers,
    - AR

  • Storm9530 Location problem??

    Hi, i live in Canada and recently purchased a used and unlocked BB Storm 9530 off the internet from texas USA. I am using the phone Pre-paid for the time being and for some reason my calls I make are costing me a fortune. I live in a border-town with a US town right on the american side but since the phone is pre-paid it cant roam. Ive talked to my cell phone company about this and they said for some reason the phones is calling internationally and its not the service itself. The phone is manually selected for my home network and i just cant figure it out. is it because the phone is an american phone? is there any way of checking more into this because i cant even use my phone to call because $5.00 for a 15 second call is rediculous. please help!

    sherrdrew wrote:
    Does anyone know if Apple is ever going to fix the location problem.  I live in IL and my Ipad thinks I'm in NC.  I'm lucky though, searching the problem on the net I found most people who live in the US are having Ipad that think they live in Europe and Germany.  At least mine is on the same side of the world.
    What a totally ridiculous claim. Most iPad owners have no problems at all in this area. The fact that you are is invidual to you and your case and, absent any useful information at all in your two posts aside from "Hey, it ain't working ...", I guess we could guess that your problems are due to the fact that
    a. You don't have a 3G model, and therefore you don't have GPS, or ..
    b. You do, but it isn't working right, or ..
    c. You do, and it's working right, but PEBKAM, or ..
    d. You don't have a 3G model, and your iPad is unable to resolve the local WIFI data to generate a rough location, or ...
    e. Same as d. above, but the local wifi datafields are simply incomplete or incorrect, or ...
    f.  Yadda yadda yadda ......

  • Autocomplete text popup location problem

    Hi,
    I encounter a autocomplete text popup location problem
    whereas the popup location is always located few cm below the textBox itself.
    Any idea how to solve this?
    Is there any property i need to set in order to prevent this?
    I am using BluePrints Ajax Component by the way.
    Thanks

    yea.
    i think that is the problem.
    i have a autocomplete textfield under groupPanel and this groupPanel is located under gridPanel
    and the resultiing popup list is located outside the panel itself.
    Thanks.
    Can u refer me to the bug URL?
    is there any workaround for this?
    Thanks

  • SCM-APO: Problem uploading Location in change.

    I have an requirement where i need to change the existing Location using transaction code /SAPAPO/LOC3 in SCM.  This will be a mass change using a flat file upload. Can anybody help me with any  standard report, LSMW BAsic INput  or BAPI available for this task.
    I tried LSMW - recording method. LSMW works fine in Fore ground but fails in Background. so i am looking out for alternate method.
    Please help.

    Hi,
    You can try transactions MASS or MASSD for collective changes to be carried out in locations.
    Regards
    R. Senthil Mareeswaran.

  • File location problem

    Hi,
    I am new in JSP and need help in locating the files of the project. I'm using Jdeveloper and context path of the project is "Change%20Request-ViewController-context-root" .I have one image-Apps.jpg ,which I want to use, having path as Change%20Request-ViewController-context-root/img/Apps.jpg
    Now problem is, when I check if the Apps.jpg file exist or not through
    String s=Change%20Request-ViewController-context-root/img/Apps.jpg;
    File image=new File(s);
    System.out.println(image.exists()); //returns false;
    %>
    where as :<img src="<%=s%>"> shows the image.
    How can we check the existence of the file ?

    hsperhar wrote:
    Thanks for the same,it gave the direction and solved the problem. I used the following code and now it is picking up the image:
    String s=application.getRealPath("/")+"img\\"+app_id+".jpg"; //path of img is contextPath/img/Apps.jpg
    java.io.File app_file=new java.io.File(app_iconid);You can also just doString path = application.getRealPath("/img/" + app_id + ".jpg");
    But, is it going to work fine when I upload the website and it would start taking the path as like www.hostname:port/contextpath ?The getRealPath() is independent from that. There it is for. That's why I suggested to use it.

  • Upload data problem

    Hello eveybody
    Im facing next problem
    I have uploaded a CSV file coming from a Excell spreadshet using APEX into my database (Oracle DB 10GR1)
    all work good in the process.
    But when I compare data to select rows from table the database not locate the rows in table.
    By example the item Codigo, have a value of 'ABCD' then if I write select * from table where codigo = 'ABCD', the select dont return the rows that have this value in item Codigo.
    Any idea ?
    Thanks everybody and regards to all.

    selezeus wrote:
    Hello eveybody
    Im facing next problem
    I have uploaded a CSV file coming from a Excell spreadshet using APEX into my database (Oracle DB 10GR1)
    all work good in the process.
    But when I compare data to select rows from table the database not locate the rows in table.
    By example the item Codigo, have a value of 'ABCD' then if I write select * from table where codigo = 'ABCD', the select dont return the rows that have this value in item Codigo.
    Any idea ?
    Thanks everybody and regards to all.Perhaps there are leading/trailing spaces on the column or it's stored in mixed case format?
    If so ...
    select * from table where trim(upper(codigo)) = 'ABCD' Should bring back the data.

  • Maps Location Problems - PLEASE HELP

    I have an 8 Gb iphone with firmware 1.1.4 and am trying to use the maps location feature. it will not work unless i turn my WiFi off and then try to locate and once i have been located i can turn WiFi back on and get a more accurate location. even if i am not connected to WiFi but i still have the WiFi feature turned on it will not work. please help

    I recall this post before. Were you the same one that posted it? The Google map location function seems to be the problem here, and it could be an issue with the application. Did you try the troubleshooting steps in order, power off/on, reset, restore? If you did and that doesn't seem to fix it, then I suggest a trip to the Apple Store Genius bar. I also find it interesting that once you get a location, that turning on the WiFi gets it more accurate. I've not seen that. The location goes out and gets its information from a webserver. If there is an issue connecting to their database, I don't know that you would get an error message. I think I posted the name of the server before, I just can't remember it now. There is a way to update location information with that service, it is posted on their webpage. I know I have the location saved on my desktop, it's is just that I'm away from home right now on my laptop. I'll see if I can find it for you.

  • File Upload element Problem

    Hello All,
    We have a problem regarding the File Upload button in Webdynpro.
    when we upload a file using this element and goto another view and comeback, the upload element is not showing any filename.
    But when debugged, the fileupload context node still has the data. Just it is not showing in the UI.
    Is it an existing problem with File Upload? Or do we have to do anything to make the filename visible.
    Thanks,
    Anand

    Hi,
    this works as designed, see the section on browser details <a href="http://help.sap.com/saphelp_nw70/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm">here</a>
    Regards, Heidi

  • File Upload demo problem

    Hi!, i have a problem with the File Upload Demo when it calls this line:
    hDirectoryObject := JFile.new(directory);
    and the error is: error 6508 "PL/SQL: could not find program unit being called"
    That's ok, but anybody knows why should the program couldnt find the routine ?
    And just one more thing...where can i look for JFile method description ??
    Thanks a lot :) !!
    Cristian.

    Is this 9i or 6i?
    JFile is an imported wrapper for a Java Class - it should be in the Demo form already - you could try a compile all on the file just in case.

  • My iphoto freezes when trying to use the standard eBay photo upload, the problem started after a recent iOS 7 update. The album photos don't appear until I try and close the upload and immediately freezes. Attempts to close iphoto fail.

    A week or so ago I reacted to an Apple update message. The update completed and this left me with a couple of problems. When the imac started up there was a Glims message on screen telling me that the computer had not closed entirely and asking if I wanted to allow glims to reopen previously open files. I ticked yes and Safari froze immediately. This would happen even after a restart, Safari would start up with the Glims message on my Yahoo mail account. Then whether I clicked on the Glims message or not one of various adverts would appear and Safari would immediately freeze. I managed to override this by quickly entering Safari extensions and subscribing to an advertisement blocking programme. Safari now worked without problems but the blocking programme created other problems mostly with iphoto. The eBay uploaded photos were minute. So I decided to remove the Safari blocking extension and all seemed fine for everything except iphoto which now freezes every time I try to upload eBay photo's using the eBay standard upload problem. Yesterday I changed to the other BASIC upload option and that did work. Thought it might be a one of glitch on the Standard but obviously not. Anyone's help would be appreciated. I note that at least one other member is experiencing the same or similar problem today.

    Sorry I am 70 and not very computer literate. Please explain in simpler terms. Perhaps I should have said Apple update for my iMac. It did however include an iphoto update. My imac is 3 years old, I also have an ipad 2 and iPhone and both received iOS 7 updates around the same time.

  • IOS7 YouTube uploading a problem

    Hi Community,
    I have upgraded my iPhone 4 to iOS7 yesterday, and the simple 1 to 2 minutes videos are no longer published on my YouTube account. It seems to go to the last screen before upload, then it always says "Could not publish 'title'".   I never had a problem before so am I not doing something right with iOS7?  How can I upload my video from my iPhone to YouTube with iOS7?  Please help.

    This has had me pulling my hair out for days now.
    I'm glad to see there are others. Here's what I've tried;
    - Reset safari
    - Remove .plist info in user/library/safari
    - Reinstall Flash
    - Reinstall Safari
    - Remove Safari Preferences .plist
    - Used "flush" to clear flash cookies.
    - Repaired disk permissions through every step of the way.
    No Luck, still works fine in firefox, fine when it's embedded in another website or in the youtube user's main account page. Works fine in a second user account on my mac.
    Its doing my head in to the point I am getting annoyed over something that would be considered relatively small.
    Anyone any other ideas?

  • Purchase Order: Ship to location problem - Please help

    Hi All,
    I have come across a problem when publishing Purchase orders where the PO header ship to address differs to a seperate PO line ship to address.
    I have written the following Choose statement to try and show separate ship to locations for each separate PO line.
    <?for-each:G_LINES?>
    <?choose:?>
    <?when:number(//G_HEADERS/POH_SHIP_TO_LOCATION) = number(//G_SHIPMENTS/PLL_SHIP_TO_LOCATION)?>
    <?POL_LINE_NUM?> <?C_ITEM_DESC?> <?LINE_NOTE?>
    <?end when?>
    <?otherwise:?>
    <?POL_LINE_NUM?> <?C_ITEM_DESC?> <?LINE_NOTE?>
    SHIP TO: <?ADDRESS_LINE1?>
    <?ADDRESS_LINE2?>
    <?end otherwise?>
    <?end choose?>
    <?end for each?>
    my logic is that if the header ship to ID is = to the line items ship to ID then just show some basic PO line info.
    Otherwise if the numbers differ then show the individual lines info along with the additional Ship to address which is in ADDRESS_LINE1, ADDRESS_LINE2 etc.
    And repeat this condition for how ever many PO lines exist for the overall purchase order.
    However, when i publish this the "otherwise" condition never gets checked if the first PO line is TRUE and vis versa if the first PO line is false.
    So if the first PO line is true then every single PO line will just show the When condition even if the separate PO lines ship to ID differs to the POH_ship to id.
    any idea why the otherwise condition wont fall true for the 2nd 3rd or however many PO lines there are if the first PO line is flagged as true?
    I hope this makes sense. Many thanks for any help.
    Greg

    I have a PO that we are using that has basically the same requirements. If the line address is different (any of them) then the header prints a message to "see below" and the address line contains the shipping information.
    The way I have done this was to create a variable and compare to see of any of the lines were different when the header was read. Then check the var when the line is processed. The template is quite long as we have many fields that dynamically display/or not so I will post a truncated version below and also please note that on this form we simply gave up using the Oracle's "fantastic" MSWORD plug-in and had to use pure a XML-FO template. However, I think the portions/logic you need should be transferable into MSWORD if you are careful.
    If snipit of code is not enough let me know and I can try to paste the entire thing after my marathon meeting today <ugh!>.
    --------start code-----------
    <xsl:for-each select=".//G_HEADERS">
    <xsl:variable name="SAME_SHIP_TO_ADDRESS_USED" select="count(.//PLL_SHIP_ADDRESS_LINE1[. != current()/POH_SHIP_ADDRESS_LINE1]) = 0" />
    ...(lots of header stuff goes here)
    <xsl:for-each select=".//G_SHIPMENTS">
    <xsl:if test="$SAME_SHIP_TO_ADDRESS_USED" xdofo:ctx="3">
    <fo:block xdofo:xliff-note="if:shipline, eif, if:shipline, ifCountShip>1, PLL_SHIP_ADDRESS_LINE1" padding-bottom="0.0pt" text-align="start" orphans="2" widows="2" padding-top="0.0pt" end-indent="0.0pt" linefeed-treatment="preserve" start-indent="0.0pt" height="0pt">
    <fo:inline height="7.0pt" font-family="Arial" white-space-collapse="false" font-size="7.0pt">Address at top of page</fo:inline>
    </fo:block>
    </xsl:if>
    <xsl:if test="not($SAME_SHIP_TO_ADDRESS_USED)" xdofo:ctx="3">
    <fo:block padding-bottom="0.0pt" text-align="start" orphans="2" widows="2" padding-top="0.0pt" end-indent="0.0pt" linefeed-treatment="preserve" start-indent="0.0pt" height="0pt">
    <fo:inline height="7.0pt" font-family="Arial" white-space-collapse="false" font-size="7.0pt">
    <xsl:value-of select="PLL_SHIP_ADDRESS_LINE1" xdofo:field-name="PLL_SHIP_ADDRESS_LINE1"/>
    </fo:inline>
    </fo:block>
    ...(lots more address fields here!)
    </xsl:if>
    </xsl:for-each>
    </xsl:for-each>
    ------------end code------------
    Good luck,
    Scott

  • Upload form problems on Mac web server with PHP

    First time using a mac web server and I'm having a heck of a time getting a simple upload form to work in this environment. The errors I'm receiving are:
    Warning: move_uploaded_file(/Library/WebServer/Documents/mydirectory/content/mwm/) [function.move-uploaded-file]: failed to open stream: Is a directory in /Library/WebServer/Documents/mydirectory/umin/uploadContent.php on line 66
    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/private/var/tmp/php1pRrx5' to '/Library/WebServer/Documents/mydirectory/content/mwm/' in /Library/WebServer/Documents/mydirectory/umin/uploadContent.php on line 66
    Usually this problem is resolved by changing permissions on the directory receiving the upload. I've already done that, and set the permissions to 777, though the problem still persists.
    I'm basically defining my upload directory, and then moving the file thereafter:
    define('UPLOAD_DIR', '/Library/WebServer/Documents/mydirectory/content/'. $category . '/');
    move_uploaded_file($_FILES['uploadedFile']['tmp_name'], UPLOAD_DIR);
    The rest of the script, without the move execution, works properly. Any help would be appreciated.
    Message was edited by: LoopyChicken

    BAH!
    I had forgotten to add the name of the file to the move command:
    Fix here:
    move_uploaded_file($_FILES['uploadedFile']['tmp_name'], UPLOAD_DIR.$file);
    Thanks.

  • File Upload / ENCTYPE Problem - Please HELP !!!!!!

    Please HELP !!!
    I have following config. MS Windows Server 2003 with
    Coldfusion 7. Everything is working fine.
    But now I want to upload a file, and there is the problem
    that I have the wrong content type on my action page, and so my
    form field "FileContents" is empty.
    On my action page i have got content_type
    "application/x-www-form-urlencoded" instead of
    "multipart/form-data".
    Here is the code:
    --------------------uploadfileform.cfm--------------------
    <cfoutput>
    <form enctype="multipart/form-data" method="post"
    action="uploadfileaction.cfm" name="uploadForm" id="uploadForm">
    <input name="FileContents" type="file"
    id="FileContents">
    <br>
    <input name="submit" type="submit" value="Upload File">
    </form>
    </cfoutput>
    --------------------uploadfileaction.cfm--------------------
    <cffile action="upload" fileField="FileContents"
    destination="e:\tempdir" nameConflict="MakeUnique">
    If there is anyone who can help me please be so kind and tell
    me the solution.
    Kind Regards!

    On my action page i have got content_type
    "application/x-www-form-urlencoded" instead of
    "multipart/form-data".
    There is no need for that sort of thing on the action page.
    On the action page the cffile tag is enough.
    Everything else seems to be all right, except one. The
    destination attribute should end with a back-slash. The correct
    value is
    destination="e:\tempdir\".

Maybe you are looking for