×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    2

    Retaining the filename when saving from a wap site ...

    This is a newbie question:

    When saving a file from our wap site (like a midi ringtone or wallpaper image) the phone does not pick up the filename from the wap url and you have to re enter it to save it on the phone ...

    Any tips???

    Thanks

    Andre

    Here is the php section from the site...

    $white label is the site name
    $newUrl is the actual url to the file on the wap server
    $contentName is the name of the item (stripped of the url and file ext.)

    header("Content-Type: text/vnd.wap.wml");
    echo "<?xml version=\"1.0\"?>\n";
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
    echo "<wml>\n";
    echo " <card id=\"splash\" title=\"" . $whiteLabel . " Downloads\">\n";
    echo " <p>\n";
    echo " To download your content, click on the link below<br/>\n";
    echo " <a href=\"".$newUrl."\" title=\"Go To\">".$contentName."</a><br/>\n";
    echo " </p>\n";
    echo " </card>\n";
    echo "</wml>\n";

  2. #2
    Registered User
    Join Date
    Dec 2003
    Posts
    2
    Ahha ... turned out to be a frimware issue on my 7250i ...

    My phone is current version 3.22 23-06-03


    I tested it on a phone with version 4.2 and the browser now picks up the filename from the url...

Posting Permissions

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