Technical support This forum is closed.
Version 1.x > Technical support > Firefox asks for image download with GetFile.aspx View modes: 
User avatar
Member
Member
janusz - 2/10/2006 10:50:50 PM
   
Firefox asks for image download with GetFile.aspx
When I click on the link that leads to an image produced by Getfile.aspx then IE it is displayed in the whole window.. But in Firefox the image is presented for a download. Does anybody knows why?

e.g. http://www.iceshop.cz/akcni-slevy/Bauer-Supreme-6000.aspx

Thanks,

Janusz

User avatar
Guest
admin - 2/11/2006 4:14:24 PM
   
Re: Firefox asks for image download with GetFile.aspx
Hi Janusz,

could you please write me which version of Kentico CMS you are using? The code we used in some of the previous versions behaved like this due to the differences in IE and FireFox. It was fixed in later versions.

Best Regards,

User avatar
Member
Member
trint99 - 5/11/2006 7:25:39 PM
   
Re: Firefox asks for image download with GetFile.aspx
I am seeing this as well. I have a link in my header control that should link to my home page (http://localhost/Website/GetFile.aspx?aliaspath=/Home). In IE I get a blank page, in FireFox I get prompted to download the file. I am running 1.8c.

Thanks.

User avatar
Member
Member
trint99 - 5/11/2006 7:26:31 PM
   
Re: Firefox asks for image download with GetFile.aspx
Version in the CMS desk shows 1.8.2167.

Thanks.

User avatar
Member
Member
Martin_Kentico - 5/12/2006 11:36:29 AM
   
Re: Firefox asks for image download with GetFile.aspx
Hello,

For certain file types (images) the GetFile returns the content within inline disposition, and for others it uses the attachment disposition by default.

The types using inline disposition (direct display in browser) are specified within the codebehind of the GetFile.aspx page, you can find and edit the list of image types if you wish to dispose in an inline form.

You can also override the disposition type through the url by adding the query parameter to the GetFile.aspx request URL:

&disposition=inline

or

&disposition=attachment


Hope this helped a little.
If you need any further help with that, please let us know.

Best Regards

User avatar
Member
Member
trint99 - 5/12/2006 4:00:06 PM
   
Re: Firefox asks for image download with GetFile.aspx
Thanks.

So it sounds like the GetFile URL is not what I need to be using here. Let me clarify the usage.

Following the examples in the tutorial PDF, I created a header control and in that control I have a CMSviewer that renders an article node as articletext. (I hope I have the nomenclature correct.) Then in the CMS desk, I edit that article node, inserting an image and some text. Using the WYSIWYG editor I add a link to the image and "Browse Server" to have the image link to the home page. (I know I could type in the correct URL, but this needs to be as simple as possible for our content editors. They're not very tech-savvy.)

When I create the link in this way, the URL created is "http://myserver.com/Website/GetFile.aspx?aliaspath=/Home" but, if I understand you correctly, GetFile is really intended to get a file (as in an image) rather than feed up another page.

If I am not using the tool correctly, please let me know. If the tool is doing the wrong thing, that's fine. I just need to educate my users to that end.

Thanks.

User avatar
Member
Member
Martin_Kentico - 5/12/2006 4:09:15 PM
   
Re: Firefox asks for image download with GetFile.aspx
It seems I haven't understand you point correctly.

The scenario i described concerns the CMS.File class documents (files, images ...), the other documents should be redirected to the proper page URL based on the given AliasPath, for that I don't understand why FF does offer the download instead of the displaying the page directly. We will sure try to reproduce this issue.

But I tried the link you gave us, and it seems to work just fine in the FF installation I have ...

Best Regards