Solved

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

Posted on 2007-11-30
6
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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'…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

734 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