473,573 Members | 3,036 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open local folder from a link in IE/Firefox + XP SP2

Hallo!

We have troubles (post XP SP2) to open local folders from the web application:

- the web application allows users to select a local file (input type=file)
- the system DOES NOT upload the file but stores the path to the folder containing this file into a
database.
- the path to the local folder is linked as <a href=file:///blablabla/folder>Open folder</a>
- we used to be able to open the folder by clicking on the link above but SP2 blocks content that
does not originate from the same source as the rest of the application which is usually good ;)

Is there a way to circumvent this limitation cause it renders a large part of our application
useless??

Thanks!
Yuri

Jul 23 '05 #1
4 32820
Yuri Vorontsov wrote:
We have troubles (post XP SP2) to open local folders from the web application:
The first problem is IE. Switch to a better browser like Firefox or
Opera. I believe they will also prevent this too, but you and the rest
of the world will be much better off using standards compliant browsers.
- the web application allows users to select a local file (input type=file)
- the system DOES NOT upload the file but stores the path to the folder containing this file into a
database.
Then why are you using a file input control? They are designed to
submit the file, not the file name and path, when the form is submitted.
- the path to the local folder is linked as <a href=file:///blablabla/folder>Open folder</a>
- we used to be able to open the folder by clicking on the link above but SP2 blocks content that
does not originate from the same source as the rest of the application which is usually good ;)
That is to prevent malicious websites accessing a users system. You
could try reducing the security level settings in IE, but it's not an
HTML question. The best solution is to have the user open the folder
themselves, since it's on their machine.0
Is there a way to circumvent this limitation
Knowing IE, there's probably a security hole you can exploit to do what
you want, but otherwise, no!
cause it renders a large part of our application useless??


That's what you get for poor design and implementation of the system.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://SpreadFirefox.com/ Igniting the Web
Jul 23 '05 #2
The first problem is IE. Switch to a better browser like Firefox or
Opera. I believe they will also prevent this too, but you and the rest
of the world will be much better off using standards compliant browsers.
;) I use Firefox - that is not the problem here. There is also no reason to bitch about it because
we are talking unified corporate intranet environment and not internet.
Then why are you using a file input control? They are designed to
submit the file, not the file name and path, when the form is submitted.
Because it is the only easy way to read the path to a certain file. Just select the file and pass
the value of the field to a hidden field without uploading the file.
That is to prevent malicious websites accessing a users system. You
could try reducing the security level settings in IE, but it's not an
HTML question. The best solution is to have the user open the folder
themselves, since it's on their machine.0


That was already clear. Try to imagine a distributed system with hundreds of users storing redundant
25Mb+ files on a shared webserver over the Internet. That simply doesn't work. That's why we opted
to store the paths to certain directories on local interconnected networks using unified disk
mapping in the central database. A click on such link opened the folder to the user and took the
user directly to his/her project data.
Is there a way to circumvent this limitation


Knowing IE, there's probably a security hole you can exploit to do what
you want, but otherwise, no!
cause it renders a large part of our application useless??


That's what you get for poor design and implementation of the system.


I am in this business since 1994. Please do not bitch, read the explanation above ;)

Thanx

Yuri

Jul 23 '05 #3
Yuri Vorontsov wrote:
There is also no reason to bitch about it
Yeah, but we do enjoy bitching from time to time.
we are talking unified corporate intranet environment and not internet.


So your question is off-topic for this newsgroup, then?

--
Brian (remove "invalid" to email me)
Jul 23 '05 #4
damonkohl
1 New Member
hi,

i'm having the same problem as you. did you find a solution yet? or is there a way to use javascript to code the functionality of that 'browse' button?













Hallo!

We have troubles (post XP SP2) to open local folders from the web application:

- the web application allows users to select a local file (input type=file)
- the system DOES NOT upload the file but stores the path to the folder containing this file into a
database.
- the path to the local folder is linked as <a href=file:///blablabla/folder>Open folder</a>
- we used to be able to open the folder by clicking on the link above but SP2 blocks content that
does not originate from the same source as the rest of the application which is usually good ;)

Is there a way to circumvent this limitation cause it renders a large part of our application
useless??

Thanks!
Yuri
Jun 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4782
by: Merlin | last post by:
Hi there, I have a serious problem with opening a new window with the help of JavaScript. The problem only occures with Firefox. Once you click on the item which fires up the open function, the new window opens up, but in the background the original window loads the homepage. I cant find a way to fix this so the site remains in the old...
8
5627
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var popWindow=window.open('http://www.yahoo.com','','width=600,height=400,toolbar=1,location=1,menubar=1,resizable=1,titlebar=1,directories=1,status=1,scrollbars=1'); the...
23
6390
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div align="center">
8
3373
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set it up as C:\domains\appA. Locally, my IIS root points to C:\domains. I don't point it to C:\domains\appA since if I have an appB under C:\domains I...
4
3374
by: Goober | last post by:
I have a dotnet web app that opens & works fine. There's another application on the same server, in a folder below the web application. Both web apps are set up as virtual directories there and both work on the server. I am preparing to take ownership of the new project, and have tried to open it, but get the following message when I try...
3
7038
by: sohan | last post by:
hi I have hyperlink column in a datagrid. The column contains the name of a text file. I am able to appendthe full path of the file. The file is on D drive on the server. But on clicking on that hyperlink does not open the file. When I right click the link, I am able to save the file. I want the file to be opne in browser in a new window....
18
3315
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to the image. The desired behavior is that when the pop-up is invoked, I want the underlying window to stay put. I don't have this problem when I...
4
4040
by: g4356 | last post by:
Hi, A new baby question: I downloaded a dot net project and saved it to my local disk. When I tried to open this project, a message popped up: "Unable to open web project "test/myfirstweb"/ The file path "D:\dnet\webproj\myfirstweb\home" does not correspond to the URL 'http://localhost:/test/myfirstweb'. The two need to map to the same...
7
17852
by: chambers.anya | last post by:
Hi, I've just been scouring the web trying to find an answer for how to do this but so far without any success. Basically I want some of the links in my page to open in new tabs (I'm using Firefox) or windows if the user has their options configured that way. And I want my page to remain intact as it involves some AJAX and takes a while to...
0
7783
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7701
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8029
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8204
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7794
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5600
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3734
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2222
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1044
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.