Solved

display image on secure https website from local computer gives security warning

Posted on 2007-11-30
6
241 Views
Last Modified: 2008-02-21
when uploading a photo ina form on a website, I let the user view the photo being uploaded, therefore it takes the image as c:/image.jpg which appears not to be secure, and I get a dialog box asking me if I want to continue with the unsecure items, once this happends my websit is no longer secure.... is there a way to fix this ?
0
Comment
Question by:bdipasquale
6 Comments
 
LVL 29

Accepted Solution

by:
Göran Andersson earned 250 total points
ID: 20384304
No. A web page needs to fetch all it's contents using https to be secure. You can't use https to get an image from the local computer, so there is no way that you can do this and keep the page secure.

How about a popup window to show the image? You might get a warning that you are navigating to an unsecure location, but the main page would still be secure.
0
 

Author Comment

by:bdipasquale
ID: 20384520
ok in that case in php could I detect if im in a secure environment or not ?
0
 
LVL 12

Assisted Solution

by:Sinoj Sebastian
Sinoj Sebastian earned 250 total points
ID: 20384540
     if($_SERVER['HTTPS'] == on)
0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20913707
Recommendation: Split between #20384304 and #20384540
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20953200
Forced accept.

Computer101
Community Support Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Google Maps API and PHP 25 49
Multiflying 2 Input Text On a Table 7 31
xjs: how to get sum of value in for loop 2 18
How do I show metrics with PHP or Javascript 6 32
Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question