CodeIgniter Forums
form_open_multipart doesn't use HTTPS - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: form_open_multipart doesn't use HTTPS (/showthread.php?tid=66080)



form_open_multipart doesn't use HTTPS - DrejerDK - 09-02-2016

I spent quite a lot of time debugging tonigh, since my .htaccess kept redirecting after a file upload.

After a while, I realized that form_open_multipart() doesn't detect that the client loaded the page with https.
It doesn't seem to be an option to enable HTTPS on this either, so for now, I'll have to make the input manually.

Anyhow, wouldn't it make sense for the function to detect wheter or not the client is using SSL and apply that to the url of the form?


RE: form_open_multipart doesn't use HTTPS - InsiteFX - 09-03-2016

Did you try in the action using the full https url?

If the action only specifies the controller/method then it will use the http protocol that the page was loaded with.