473,513 Members | 2,443 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 32816
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
4776
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...
8
5620
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...
23
6366
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...
8
3366
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...
4
3372
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...
3
7025
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...
18
3301
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...
4
4036
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...
7
17847
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...
0
7545
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...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5095
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...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
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...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
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 ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
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...

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.