Solved

to modify file on the server from the browser

Posted on 2004-10-09
7
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
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 create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…

726 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