Sorry, copied wrong code to you. Actually code has https in it:
<form method="post" action="https://www.myurl.com/imsafm2_main.php";
name="upload_form" enctype="multipart/form-data"



On 10/4/06 4:55 PM, "Andrew Brampton" <[EMAIL PROTECTED]> wrote:

> <form method="post" action="http://www.myurl.com/imsafm2_main.php";
> name="upload_form" enctype="multipart/form-data">
> 
> 
> might be your error, should that not be https://   ?
> 
> Andrew
> 
> ----- Original Message -----
> From: "Rahul S. Johari" <[EMAIL PROTECTED]>
> To: "Jo ã o C â ndido de Souza Neto" <[EMAIL PROTECTED]>; "PHP"
> <php-general@lists.php.net>
> Sent: Wednesday, October 04, 2006 9:02 PM
> Subject: Re: [PHP] File Uploads not working over SSL
> 
> 
> 
> Well, the File Manager application itself is pretty extensive... But if
> you're looking for the upload code, here it is (sensitive information
> erased):
> 
>                             if($upload_file) {
>                             $db = mysql_connect("localhost","usr","pwd");
>                             mysql_select_db("db",$db);
>                             $date = date("m-d-Y, D, H:i");
>                             $img1_name = str_replace("\'", null,
> $img1_name);
>                             if(($img1_name=="") || ($img1_size<=10)) {
>                             ?>
>                             <script
> language="javascript">alert('error');</script>
>                             <?
>                             }
>                             else {
> 
>                     $justchecking = "imsafm/$location/$img1_name";
>                     if (file_exists($justchecking)) {
>                     echo "<i>$img1_name</i> already exists. Please delete
> the file first, or rename the file before uploading.";
>                     }
> 
>                     else {
>                     $sql = "INSERT INTO file
> (login,filename,descr,size,uppedby,date) VALUES
> ('$location','$img1_name','$desc','$img1_size','$PHP_login','$date')";
>                     $result = mysql_query($sql) or die("There is a
> problem.");
>                     copy("$img1", "imsafm/$location/$img1_name") or
> die("Could not do");
>                     }
>                 }
> 
> 
> And this is what I have as the <form> tag for the upload form. The form
> itself is pretty simple & basic, so nothing much to show in it:
> <form method="post" action="http://www.myurl.com/imsafm2_main.php";
> name="upload_form" enctype="multipart/form-data">
> 
> Thanks.
> 
> On 10/4/06 3:49 PM, "João Cândido de Souza Neto"
> <[EMAIL PROTECTED]> wrote:
> 
>> Please, show us your code.
>> 
>> ""Rahul S. Johari"" <[EMAIL PROTECTED]> escreveu na mensagem
>> news:[EMAIL PROTECTED]
>> Ave,
>> 
>> I have a File Manager application in place for over 2 years now.
>> Everything¹s been working groovy!
>> Until yesterday. Yesterday we purchased and installed an SSL Certificate.
>> And now the uploads are not working anymore! Gets the ³Page cannot be
>> displayed² error. Tried the same application without SSL and it¹s working
>> fine!
>> 
>> What¹s the workaround? How do I get this to work on SSL?
>> Any suggestions?
>> 
>> Rahul S. Johari
>> Supervisor, Internet & Administration
>> Informed Marketing Services Inc.
>> 500 Federal Street, Suite 201
>> Troy NY 12180
>> 
>> Tel: (518) 687-6700 x154
>> Fax: (518) 687-6799
>> Email: [EMAIL PROTECTED]
>> http://www.informed-sources.com
> 
> Rahul S. Johari
> Supervisor, Internet & Administration
> Informed Marketing Services Inc.
> 500 Federal Street, Suite 201
> Troy NY 12180
> 
> Tel: (518) 687-6700 x154
> Fax: (518) 687-6799
> Email: [EMAIL PROTECTED]
> http://www.informed-sources.com
> 

Rahul S. Johari
Supervisor, Internet & Administration
Informed Marketing Services Inc.
500 Federal Street, Suite 201
Troy NY 12180

Tel: (518) 687-6700 x154
Fax: (518) 687-6799
Email: [EMAIL PROTECTED]
http://www.informed-sources.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to