Solved

download file in browser.

Posted on 2014-10-11
10
188 Views
Last Modified: 2014-10-18
Hi,

I have a web application in which there is a function to download the file. It behaves differently as per different browser say in in chrome file is downloaded directly,in IE it ask whether to open,save or cancel etc.
We can't change the behaviour as far as browsers are concerned. Can we?

Now if user opens the file in the browser say he is opening in IE,then can user edit the file for example xls/word? Is there any security concern?
0
Comment
Question by:Rocking
[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
  • 3
  • 3
10 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40374989
On a normal web site (not Sharepoint), the user may be able to edit the file after it is downloaded... but without an upload page or function, they can not save it back to where they got it.  That applies to all browsers.  Downloading without any other special help is strictly one way, download from the server without any ability to upload it back.
0
 

Author Comment

by:Rocking
ID: 40375012
Is it the restriction of the browser? It means all the files which are opened in the browser are in read only mode and thats how all the browser behaves?

Can you share the link where this information is available?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40375036
No, that's not what I mean.  Browser's only download files and it's been that way from the beginning for 'normal' web sites.  They do not have any access or permission to 'write' files back to a remote server and they never have.

And files like xls and word are not opened by the browser itself but by the programs they designed for like Excel and Word.  The only files that browsers open by themselves are HTML web page files except that Firefox and Chrome now have builtin PDF viewers.
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

Author Comment

by:Rocking
ID: 40375293
so if we open a xls file which is opened in native viewer,can we edit the file which is opened by browser?
Say
1. Is file downloaded into client machine or it is directly opened from server location?
2.If it is opened from local then there is no issue in writing because it is in the hold of the client machine.
3.If it is opened from the remote server directly without downloading from server? If we edit this file then is it saved at remote server location?

Please confirm the three points.
0
 
LVL 25

Expert Comment

by:Mohammed Khawaja
ID: 40375307
If you would like the same functionality in Chrome which you have in IE then download Chrome Extension IE Tab.  You will get the same functionality for saving as well as being able to edit Office documents.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40375319
In a web browser, files are always downloaded and opened locally.  Even web pages are displayed that way.  For files like 'xls', the browser itself does not open them, it passes them on to the program on your computer that is designated to open them.  The only exception I know of at the moment is PDF files and both Firefox and Chrome now have builtin viewers for those.  (But Not editors)

There are some specialized network setups with Microsoft Sharepoint that are designed to save pages back to the server.  And there are networks where the local computer is used as a display terminal and the files and applications are opened and edited on the server.  But those are not web browser and web server applications.

This page you are looking at is downloaded to my computer and I am editing this text on my computer.  When I click on Submit it sends it back to the server.  But I am not Editing it on the server.
0
 

Author Comment

by:Rocking
ID: 40377408
are there any open source plugin for opening ms office files in browser (chrome,ie,firefox)
0
 
LVL 25

Expert Comment

by:Mohammed Khawaja
ID: 40378005
There are no plugins but you could download LibreOffice which is freeware.
0
 

Author Comment

by:Rocking
ID: 40382614
it can be embedded in internet explorer,chrome and firefox?
0
 
LVL 25

Expert Comment

by:Mohammed Khawaja
ID: 40382700
I don't know of any ways of opening office documents as embedded in browser.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

752 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