/    Sign up×
Community /Pin to ProfileBookmark

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

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@Phill_PaffordAug 20.2008 — 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?
Copy linkTweet thisAlerts:
@raveendranauthorAug 20.2008 — 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/getting-photos-from-iphone-to-flickr/

http://www.google.co.in/search?q=upload+image+from+iphone+to+site&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

[B]

code[/B]

[code=php]<?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>[/code]


Please help me to fix this issue
Copy linkTweet thisAlerts:
@Phill_PaffordAug 20.2008 — Here is a link I found on the subject that might help

http://www.developershome.com/wap/wapUpload/wap_upload.asp?page=php5
Copy linkTweet thisAlerts:
@raveendranauthorAug 21.2008 — 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.
Copy linkTweet thisAlerts:
@Phill_PaffordAug 21.2008 — You would need to know the exact path for both the device and the server.

You can specify both.
Copy linkTweet thisAlerts:
@ayveghAug 21.2008 — 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 ?
×

Success!

Help @raveendran spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...