Hi Michiel ,
I am pasting here my piece of code here in php
Which I am using for upload . it works for normal HTTP.
But with HTTPS it does not work for files of format other than .txt
My Code Below
FORM HANDLER
------------------------------
<html>
<body>
<form action="upload.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="upload" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>
UPLOAD HANDLER
-----------------------------------
<?php
if ($_FILES['upload']['error'] == 0)
{
$fileName = $_FILES['upload']['name'];
echo $filName;
echo "Upload ok\n";
if ($_FILES['upload']['size'] > 0)
{
echo $_FILES['upload']['tmp_name'];
$tmpName=$_FILES['upload']['tmp_name'];
}
move_uploaded_file($tmpName, "/tmp/testdoc");
}
?>
Thanks
Rabindra
On Thu, Feb 25, 2010 at 12:43 PM, Rabindra Paikaray
<[email protected]>wrote:
> Hi Michiel ,
> Thanks for your reply.
> I was trying the upload with php script .
> It is working nicely for all kinds of file format if I am using the normal
> http.
> If I am using the https (mathopd applied by the SSL patch provided) upload
> is happening . But when I am opening the file it's telling that unknown mime
> type.
> data integrity lost.
> Any idea about this.
>
>
> Thanks
> Rabindra
>
>
>
> On Wed, Feb 25, 2009 at 11:10 PM, Michiel Boland <[email protected]>wrote:
>
>> Rabindra Paikaray wrote:
>>
>>> Hi All,
>>> I want to know is mathopd supports file upload to server or not?
>>> Recently I was trying to upload the file , but it was failing .
>>> I don't know is it require to configure properly or it does not support
>>> at all.
>>>
>>
>> Mathopd by itself does not support file uploading, but you can do this via
>> CGI (PHP/Perl/Whatever)
>>
>> Cheers
>> Michiel
>>
>
>