473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Firefox security blocking image preview script

1
Hello all

I am new here and this is my first post.

I have tried several javascripts to preview an image on a web page using the "input type=file" to Browse and preview the image.

Using IE the image preview works fine but not in Firefox/Netscape. From reading many many threads from various sources I gather the problem is Foxfire's security settings that prevent the image from loading. I verified this by viewing the Javascritp Console. The Console message indeed says the upload was aborted do to security.

Somewhere I saw a way to enter a url in firefox that allows the user to change security settings that can not be accessed through the standard menus. I have tried and tried but can not find where I saw this. Does anyone know where this info is available?
OR
Does anyone know of a workaround/javascript that will allow previewing an image in Firefox?

Thanks
Lou Petkus
Sep 24 '06 #1
1 2801
acoder
16,027 Expert Mod 8TB
I have been stuck on the same problem and while searching came across this post.

Apparently, Firefox does not allow access to local files from remote sites.

See this Mozillazine page for possible solutions.

But, it's all fine if I can view the images but I want all Firefox users to be able to preview the images.

Does anyone know of any client-side JavaScript-based solutions that does not require users to change any security settings or change any files or download any extensions? Surely, it's obvious that an image file with an extension of .gif, .jpg, .png or .bmp, etc. is not going to compromise security or am I missing something?!
Nov 23 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: miarte | last post by:
I have a form to allow the user upload images. The user browse for an image in their computer and click open, th image to be upload is preview on the img tag. The script works fine with IE, but...
9
by: Joe | last post by:
I'm trying to create an image preview function so that my users can preview images before they upload them. I've got my example working locally on both Firefox and IE, and from the webserver in IE....
16
by: Neo Geshel | last post by:
I'm helping on a web site, and it's got our knickers in a knot. We're using the same basic CSS files (with mods) and same headers as from our other sites, but the "print preview" won't work...
4
by: Lunchtimemama | last post by:
I have a UI with a gallery of thumbnail image previews. The PictureBoxes are created and their Images are generated by a method which quickly retrieves the icon for the filetype. Worker threads...
9
by: William Krick | last post by:
I'm currently using the following custom Stylish style sheet in Firefox 2.0.0.11... *{ color: black !important ; background: none !important; background- color: white !important } a:link {...
5
by: rosaryshop | last post by:
I'm working a jewelry/rosary design web site at http://www.rosaryshop.com/rosariesAndKits2.php. As the user makes selections, it updates images of various parts, giving them a preview of the...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
2
by: Tim Streater | last post by:
The following test page is intended to allow the user to choose an image file, and then display it. It works as expected in Safari 3.1.1, FF 2.0.0.14 (Mac), and IE7 (XP). But, it fails in FF...
5
pradeepjain
by: pradeepjain | last post by:
Hii guys, I used http://javascript.internet.com/forms/image-upload-preview.html for picture preview .Its working in IE but not in firefox .and ya he has said directly that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.