www.webdeveloper.com
Results 1 to 7 of 7

Thread: File uploading in Black berry or iphone browsers

  1. #1
    Join Date
    Jul 2008
    Posts
    18

    File uploading in Black berry or iphone browsers

    Hi,

    I had written the Program of File uploading in PHP.It is working in the Nokia phone browsers.

    But it is not compatible with the iphone or Black berry devices.

    i)Was there any separate file uploading program to be written for the iphone or black berry devices.

    ii)Was there any good simulators or emulators to test this file uploading concepts in iphone or blackberry devices.

    Thanks
    ravi

  2. #2
    Join Date
    Aug 2006
    Location
    Michigan
    Posts
    1,046
    what are the errors your getting?

    I think the iPhone uses safari which should support file uploads from the iPhone. I don't know the browser that the BB uses but it might have some limitations.

    Could you post some of your code for review?

  3. #3
    Join Date
    Jul 2008
    Posts
    18

    uploading with PHP code

    Thanks a lot,

    We have tested with blackberry simulator, In this simulator the browse button is in disable mode .so we cant click browse button,

    so we need to write image path directly but we cant find out the path for the image, but the image is not uploading to the server.


    Do you know anything about facebook or flickr functionlity they are doing using special email address for uploading files from iphone to site.

    Was it is related to the same problem what i am facing?.I google it and i found out something with the following links.

    http://scobleizer.com/2007/07/01/get...one-to-flickr/

    http://www.google.co.in/search?q=upl...ient=firefox-a


    code

    PHP Code:
    <?php
        
    if($_REQUEST["submit_upload"]=="submit") {
        
            
    $target="../media_images/".$_FILES['upfile_0']['name'];
             
    $source=$_FILES['upfile_0']['tmp_name'];
            if(
    move_uploaded_file($source$target))
            {
                
    $message="The file is succesfully uploaded.";
            }
            else
            {
                
    $message="The file is Failed to uploaded";
            }
            
        }

    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <body>
    <form name="frm_upload" action="" method="post" enctype="multipart/form-data">
        <input type="file" name="upfile_0" id="upfile_0" size="10"  value="" />
        <input type="submit" name="submit_upload" value="submit">
    </form>
    </body>
    </html>
    Please help me to fix this issue

  4. #4
    Join Date
    Aug 2006
    Location
    Michigan
    Posts
    1,046
    Here is a link I found on the subject that might help

    http://www.developershome.com/wap/wa....asp?page=php5

  5. #5
    Join Date
    Jul 2008
    Posts
    18

    images is uplaoding but not showing

    Thanks alot,

    We have tried using your code.It is uploading the images on the particular folder,but the images is not displaying.

    We cant find out the exact image path because the browse button is in disable mode so we need to write the image path directly. But if we use your code some file is stored to the server but not exact file
    for example
    In black berry simulator the image path like
    /Device Memory/samples/pictures/Amp.png

    This is the path i have used for upload

    but in the server some file with Amp.png is stored but image is not displayed in server.

  6. #6
    Join Date
    Aug 2006
    Location
    Michigan
    Posts
    1,046
    You would need to know the exact path for both the device and the server.
    You can specify both.

  7. #7
    Join Date
    Jun 2008
    Location
    Right Behind You
    Posts
    215
    As of this point in time, the iPhone doesn't support file uploads, and there is no plan for supporting it in the future.

    Then again, knowing Apple, who knows

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles