943,829 Members | Top Members by Rank

Ad:
Jan 10th, 2008
0

zip file download from web browsers

Expand Post »
hello,

Current scenario: When user downloads file from web browser having extension .zip or .rar the user is prompted with save dialog.

Requirement: When user downloads file having .zip or .rar extension the we browser should not prompt for the save dialog but rather open the file directly in winzip or winrar.

Is there any way i can acheive this without using the third party tool???
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
prajaktanaikare is offline Offline
5 posts
since Jan 2008
Jan 12th, 2008
0

Re: zip file download from web browsers

No.

You are asking for the ability to commit security violations. Whoever wants this capability needs a course in internet security.

The browser is not allowed to run any downloaded file for security reasons. The browser is also not allowed to unzip the file, since the file could install malware while being unzipped. This is a matter of security, and is also a matter of LAW in many nations, including the US.

The user has the RIGHT to scan all downloaded files for malware before unzipping and running them manually.

The website being browsed has NO RIGHT to install or run downloaded software on the user's computer, without the express PERMISSION of the user.

The browser also might not know how to display the file, since the file type is not known at the time of download. The instructions of what kind of file to create when unzipping are hidden inside the .zip file.

The unzipping function also must use a disk file, not an Internet file. With some compression methods, the software must make multiple passes through the file.
Last edited by MidiMagic; Jan 12th, 2008 at 1:27 am.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Jan 14th, 2008
0

Re: zip file download from web browsers

Thank you for the explanation.

Another problem that i am facing is, in our application we have zip, rar files stored in the database. When i try to download these files on my machine it asks for saving. Servlet is used to download these files. The content type set is application/zip and application/rar for zip and rar files respectively. But when i save these files on my machine they get saved by .jsp extension. I have winzip and winrar software installed on my machine.
Where should the problem lie???
Reputation Points: 10
Solved Threads: 0
Newbie Poster
prajaktanaikare is offline Offline
5 posts
since Jan 2008
Jan 14th, 2008
0

Re: zip file download from web browsers

@Midi magic
Quote ...
he browser is not allowed to run any downloaded file for security reasons. The browser is also not allowed to unzip the file, since the file could install malware while being unzipped. This is a matter of security, and is also a matter of LAW in many nations, including the US.
hey aren't you going too far , this isn't that complicated as you are making it sound ... i use Mozilla firefox and it opens and runs all the files.
Reputation Points: 10
Solved Threads: 1
Light Poster
Salim9 is offline Offline
36 posts
since Jan 2008
Jan 15th, 2008
0

Re: zip file download from web browsers

I am little bit confused. I am using IE browser and for saving file i am using filechooser component of java. When i save the .doc file using file chooser the extension shown while saving is .doc and file type is selected automatically as Microsoft Word Document. This is working fine. But when i try to save file having .zip or .rar extension the file chooser show the extension as .jsp and file type is .jsp document. I have to externally set the extension to .zip or .rar and then open the downloaded file.

Is there any way for these file formats .zip and .rar the extension are automatically set in file chooser rather than manually changing it?

Also i checked it with mozilla firefox and netscape. There doing some browser setting i can open these file formats without any problem.
Last edited by prajaktanaikare; Jan 15th, 2008 at 2:05 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
prajaktanaikare is offline Offline
5 posts
since Jan 2008
Jan 15th, 2008
0

Re: zip file download from web browsers

I am little bit confused. I am using IE browser. When i save the .doc file using save dialog the extension shown while saving is .doc and file type is selected automatically as Microsoft Word Document. This is working fine. But when i try to save file having .zip or .rar extension the save dialog show the extension as .jsp and file type is .jsp document. I have to externally set the extension to .zip or .rar and then open the downloaded file.

Is there any way for these file formats .zip and .rar the extension are automatically set in save dialog rather than manually changing it?

Also i checked it with mozilla firefox and netscape. There doing some browser setting i can open these file formats without any problem.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
prajaktanaikare is offline Offline
5 posts
since Jan 2008
Jan 15th, 2008
0

Re: zip file download from web browsers

The setting you are making turns off the security that prevents malware on sneaky sites from running itself on your computer. You should not make that setting.

Check to see if the .zip and .rar extensions are in the file types list in My Computer. This is what tells applications what extensions are valid and what program to open files of that type with.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Jan 16th, 2008
0

Re: zip file download from web browsers

Click to Expand / Collapse  Quote originally posted by MidiMagic ...
The setting you are making turns off the security that prevents malware on sneaky sites from running itself on your computer. You should not make that setting.

Check to see if the .zip and .rar extensions are in the file types list in My Computer. This is what tells applications what extensions are valid and what program to open files of that type with.
I checked the file types present on My Computer. I went to 'Settings'->'Control Panel'->'Folder Options'->'File Type' tab. The entries are present for .zip and .rar file type. Still these file types are not recognized by the computer
Reputation Points: 10
Solved Threads: 0
Newbie Poster
prajaktanaikare is offline Offline
5 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Web Browsers Forum Timeline: Firefox Cookie Problem
Next Thread in Web Browsers Forum Timeline: Delivery Status Notification (Failure)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC