Problem with downloads from php, works OK in IE browser
|Peter Harkness||01/11/2011 11:29 am|
|We have .iso files stored on our internal systems, they are referenced by urls such as:
When I click on this link in Internet Explorer I get a dialogue offering to save the file as jan2011.iso which is correct.
When OE pro processes this url it downloads the file but saves it with a filename matching the url, in other words it is saved as
"library.php?view=retrieve_item&g2_itemId=16" under the download tree instead of "jan2011.iso"
OE doesn't deem to be able to extract the file name in the way that Internet Explorer can.
|Peter||01/12/2011 09:50 am|
|I think it relates to a "Content-Disposition" header which maybe OE Pro isn't picking up. Does OE pro process this header?
|Peter Harkness||01/12/2011 12:20 pm|
|OK, it works if I amend the project setting to download text files which I had unticked. I've read in other posts that in this case with the Content-Distribution OE will save with the correct filename and the text file will be a link. However I don't want to download the text files so can this be considered a bug. In the case of not downloading text files should OE not save as the correct filename and just skip the saving of the text link?|
|Oleg Chernavin||01/13/2011 02:40 am|
|Yes, it looks quite strange. Can you please revert the Project settings back to it was before (to reproduce the error) and send them to me? Just select it, press Ctrl+C on keyboard and paste to the forum message. You may change the URL and remove password (if any).
Please also excuse me for the late answer.
|Peter Harkness||01/14/2011 04:48 pm|
|Tried 3 types to upload project. Forum says post will be moderated, have you received the details?|
|Peter Harkness||01/15/2011 03:50 am|
|Sure, here you go
|Oleg Chernavin||01/15/2011 04:45 am|
|I can't reproduce this. All I get is a message that "Images are disabled" when downloading that ISO file (I tested on another site with another file types, but this should be equal). This is incorrect wording and I changed it now.
However it is true that Text category should be enabled, because PHP extension is listed in File Filters - Text. Unfortunately, when deciding whether to download some link or not, Offline Explorer is unaware what link type it is. All it sees is the URL.
|Peter Harkness||01/17/2011 05:29 am|
I thought that if text downloading was disabled that text files such as html, php would still be downloaded and parsed but NOT saved to disk. So if I disable text files the php should still be downloaded (to look for other links) and then the real filename can be found and the file saved. Then the text file is discarded.
I want to download the iso files without hundreds of php files being saved to the disk also.
|Oleg Chernavin||01/17/2011 09:45 am|
|This is so. I wish I could reproduce this myself to fix the issue. Is there some public site with such kinds of linking?
|Peter Harkness||01/18/2011 08:28 am|
|No this site is internal only. Would header info from one of the pages be of any use?|
|Oleg Chernavin||01/18/2011 01:23 pm|
|I am afraid, no. I need to reproduce this on some real server. Maybe there are some similar public sites?
|Peter Harkness||01/20/2011 09:05 am|
I may be able to set up a small web server with a few pages and dummy files based on our intranet structure. It would be accessible to you. However I don't want to put the details in this forum. Can I pass the detail to you some other way?
|Oleg Chernavin||01/20/2011 03:57 pm|
|Sure. I just sent an E-mail to the address you left in this forum.