Hello, "Zhenyu Wang" <[EMAIL PROTECTED]> wrote on 13.12.2006 08:30:00:
> - "Files not uploaded. We only accept .jpg, or gif". Strangely, the
same
> code has been used to upload the images to other external sites
> sucessfully. Any suggestion why is this happening? Thanks.
I guess other external sites don't check the file type, or don't
check it in the same way as this site.
> File lImageFile = new File("C:\\heart.jpg");
> FilePart lFilePart = new FilePart("photofile", lFile);
> lFilePart.setContentType("image/jpeg");
Have you tried "photofile.jpg" as the file part name?
hope that helps,
Roland
smime.p7s
Description: S/MIME Cryptographic Signature
