Solved

to modify file on the server from the browser

Posted on 2004-10-09
7
149 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 …
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now