Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2004

    Upload Image Problem!!!

    I had developed a xHTML WAP page to upload image. It's working if i upload an image where file size less than 10 kb. But when i try to upload an image where file size more than 10 kb. I can't retrieve any data in the next page.

    May i know why it's happen?? I don't think this is WAP Gateway problem. Is it anything that i miss out to develop a upload page?


  2. #2
    Registered User
    Join Date
    Nov 2004
    Hi, i also have a problem, which is similar so i hope you can help me out.

    Im quite new to this so if its an obvious answer, dont laugh at me

    Im using the uploading code in "Mumbai_XHTML_Browsing" pdf document.

    It goes like this -


    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
    "http://www.wapforum.org/DTD/xhtml-mobile1.dtd" >

    <html xmlns="http://www.w3.org/1999/xhtml">
    <center><img src="logo.gif" alt="ImageUp" /></center><br />
    <center><h2><font color="blue">Upload Page</font></h2></center>
    Please select the file you wish to upload
    <form action="http://www.server.com/uploadServlet">
    <input type="file" name="fileToUpload">
    <input type="submit" name="submit">
    <center><a href="index.htm">Back</a></center>

    Firstly, should i be using .htm files, or .wml or...? Ive been testing it with a 7250i and after selecting the image and hitting submit, it goes to an error 404 page.

    Also, regarding this bit...

    <form action="http://www.server.com/uploadServlet"> <--- does that need to be changed to my servers url? Am i being dumb?

    Any help would be great, as i dont really know where else to look.


  3. #3
    Super Contributor
    Join Date
    May 2003

    You have to select language which your phone support. Example 7250i support XHTML Mobile Profile.

    You must use your own server address, because otherwise uploaded stuff will go totally wrong place.

    You have to have also some intelligent on the server side. But use example words "upload" and "Servlet" on the Google to find more information about that.


  4. #4
    Registered User
    Join Date
    Nov 2004
    Thanks for the help. I got my file uploader working using a different approach. Thanks
    Last edited by dilapper; 2005-01-20 at 01:01.

  5. #5
    Registered User
    Join Date
    Jan 2005
    Can you please tell me what the other approach you use and tell me more details. I am doing a final year project for something similar. Thankyou.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts