Solved

to modify file on the server from the browser

Posted on 2004-10-09
7
162 Views
Last Modified: 2010-04-07
Hi all,

I am developing a website using ASP.NET/C#. I would like to add the following function:

When a user clicks on a document link (.xls, .doc, etc), it automatically opens the file
for modification. When the user has finished modifying and saves, the modifed file
should automatically upload to the server, overwriting the old file.

I am looking for minimal user interaction (find a location to save/upload etc)
Any ideas on how to do this?

Thanks in advance,
0
Comment
Question by:wonhoc
  • 4
7 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 12268859
Whether or not the file opens when thlink is click depends on whether the user has the correct applications installed, and whether the browser associations are set to recognize the.  Where is this file resides on the server, just how to yu intend to resolve simultaneous update by more than one user.  If it resides on the client then you have to resolve security issues and you will require activex to access the local file system.

As for the automatic upload.  The application doing the update may be able to do that.  A web page is certainly not going to do it without explicit enableing by the user; again a security issue.  As for what actually happens to the file on the server side; that is all dependent on the server side scripting.

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 12268861
If this is for a intranet application, it is probably possible to put the pieces together and get the user settings correct.  If it is for the Internet; lot's of luck.  You may get some users that will allow that kind of intrusive page; but there is not way that any user access through a corporate network is going to be allowed to run with security setting set to allow what you want to do.

Cd&
0
 

Author Comment

by:wonhoc
ID: 12274221
This is for the internet and no share the file at all. Thank you for your
comment and do you have any examples to implement  this?
I implemented with user interaction module, i.e.
when you download you are required to set the path to save and
when you upload you need to find the file, however
i would like to save at predefined path and upload from the path
then the user does not worry about the location to save or upload.
do you have any idea ?
Thanks
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 400 total points
ID: 12277235
That requires security bypasses that can only be done with activeX.  Activex controls are not my area of expertise.

To tell you the truth, that kind of thing will just get you site blocked by any corporate network with a concern for security;  it is far too agressive and dangerous to allow such things through the firewall.

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 12277255
BTW,

You will only get it to work for users with IE installed with low security setting.  The fact that IE will allow this and other such things is one of the reasons that CERT issued an alert about the dangers of IE and recommend users not use it on the Internet.

Cd&
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

828 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