From: Bobbie <bobbie.st...@gmail.com>
Date: Thu, 19 Mar 2009 08:38:08 -0700 (PDT)
Local: Thurs, Mar 19 2009 11:38 am
Subject: Re: File Upload Question
I'm currently not specifying a MIME type, do I need to do this? Here
is the PHP code I'm using: <?php
$target_path = $target_path.basename($_FILES['uploadedfile']
if (move_uploaded_file($_FILES['uploadedfile']['tmp_name'],
}
else
{ echo "There was an error uploading the file, please try again!"; }
?>
On Mar 19, 10:11 am, Carl Whalley <carl.whal...@googlemail.com> wrote:
> Sure its not the MIME type not being defined correctly on the server?
> Try changing the extensions to txt, bin, etc and if you see a pattern > where some work and others don't then thats the culprit. > --
> On Mar 18, 8:36 pm, Bobbie <bobbie.st...@gmail.com> wrote:
> > I have included my code below. I have the code working for image
> > // WORKS WITH JPEG FILE -- String existingFileName = "/sdcard/dcim/
> > String lineEnd = "\r\n";
> > // connectURL is a URL object
> > // allow inputs
> > // allow outputs
> > // don't use a cached copy
> > // use a post method
> > // set post headers
> > // open data output stream
> > // create a buffer of maximum size
> > // read file and write it into form...
> > // send multipart form data necesssary after file data...
> > // close streams
> > InputStream is = conn.getInputStream();
> > StringBuffer b =new StringBuffer();
> > String s=b.toString();
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||