Re: File Uploads not working over SSL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"
<joao@xxxxxxxxxxxxxxxxxxxxx> wrote:

> Please, show us your code.
> 
> ""Rahul S. Johari"" <rjohari@xxxxxxxxxxxx> escreveu na mensagem
> news:C1498185.192C2%rjohari@xxxxxxxxxxxxxxx
> 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: rahul@xxxxxxxxxxxxxxxxxxxx
> 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: rahul@xxxxxxxxxxxxxxxxxxxx
http://www.informed-sources.com


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux