Solved

download file in browser.

Posted on 2014-10-11
10
181 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
  • 4
  • 3
  • 3
10 Comments
 
LVL 82

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 82

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
 

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 24

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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 82

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 24

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 24

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

708 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

17 Experts available now in Live!

Get 1:1 Help Now