+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Images & Documents file extension

Images & Documents file extension

14 posts, 0 answered
  1. Marko
    Marko avatar
    148 posts
    Registered:
    30 Jul 2008
    06 Nov 2008
    Link to this post
    So, with 3.5, there is no more requirement to add the sflb extension to IIS settings, right?  Does that mean I can go and remove those extensions from the IIS site if I had them back in 3.2?  Would that break anything? 

    Also, in 3.5, the files are showing up with .sflb.ashx extension, instead of just .sflb, right?  Is there a reason that files are simply not using their own regular extension?  Like, if I upload myFile.pdf to Images & Docs, why doesn't it just stay as www.mysite.com/libraries/myLibrary/myFile.pdf ??? 
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Nov 2008
    Link to this post
    Hello Marko,

    The new extensions for Rss and Images&Libraries do not require additional mapping in the IIS. Removing the old one from the IIS should not lead to troubles.
    As for the second question, the reason for using this extension is having universal extensions for files as well as saving additional Script Mapping in IIS as it is in versions before 3.5

    Check out the following KB. The solution there allow you to call your files with their own extensions. The example is prepared for .mp3 extension, but it should work for other extensions as .doc, pdf and so on.

    How to filter the default ContentHttpHandler by extension

    I hope this helps.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Marko
    Marko avatar
    148 posts
    Registered:
    30 Jul 2008
    07 Nov 2008
    Link to this post
    Hmm, I don't really want to do all kinds of IIS mappings for "regular" file extensions.

    The main reason I ask, though, is because I had a problem in version 3.2 with Mac users.  For example, Firefox on Mac does NOT always recognize .sflb files, depending on the type of the embedded file.  It would present the users with a message that says basically "i don't know what to use to open .sflb files, what do you want to open this file with?..."  So it's treating sflb files as "unknown file type", even though that particular file is really a .doc or .ppt (for example) in the database.

    I had already reported that problem with Macs in a support ticket, and it was acknowledged by the support guys.  They said the problem would go away with 3.5 because .sflb extension is going away.  I thought that meant files are simply going to be shown with original extension, but I guess that's not the case.  I'm still testing the version 3.5 in a development environment (against other customizations I've done), so I don't know if the MAC problem is now gone with .sflb.ashx.  I'll report back here my findings, when I get there.
  4. Marko
    Marko avatar
    148 posts
    Registered:
    30 Jul 2008
    07 Nov 2008
    Link to this post
    OK, I tried uploading a test file into Images & Documents (in ver. 3.5), and in FireFox on Mac, ASHX comes up as unknown file type, and wants to know what to open with (even though the original file was a PDF and the Mac typically opens taht fine in web browsers).  Just FYI... I've reopened my original ticket about this, so Ill be expecting some more discussion with Telerik support gurus there.  I just wanted to keep some information here, as well, so that others can benefit from it, too.
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Nov 2008
    Link to this post
    Hello Marko,

    We sent you a reply to your support ticket earlier today.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Chris
    Chris avatar
    57 posts
    Registered:
    12 Nov 2008
    19 Nov 2008
    Link to this post
    Since I just stumbled over the same problem, what was this reply?
    Firefox on Windows, as well as Internet Explorer, choke on the *.ashx extension and don't know what do do with it.
    Would it be possible to put the original filename into the HTML meta information?
    Response.AddHeader("content-disposition""attachment; filename=\"" + OriginalFilename + "\""); 
    This would keep the universal *.slfb.ashx extensions while ensuring that, upon downloading the actual file, all browsers would know what to do with the file.

    Cheers, Chris
  7. Marko
    Marko avatar
    148 posts
    Registered:
    30 Jul 2008
    19 Nov 2008
    Link to this post
    Well, in my case, it is an issue for FireFox on MACs only.  FF on Windows seems to recognize things properly.  You might want to check with Telerik support on your specific issue.

    In the reply from Telerik, though, it was recognized that this is a reproducible issue on MACs.  No direct solution for now, other than to try a different version of FF or take a different approach other than using Images and Libraries.

    I'll let Telerik answer the second part of your question, since I don't know the answer to that.
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    21 Nov 2008
    Link to this post
    Hello,

    We fixed the problem for Firefox as well. We used similar approach, and the fix will be provided with the upcoming version due to the mid of December.

    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Diana
    Diana avatar
    16 posts
    Registered:
    26 Nov 2008
    08 Apr 2009
    Link to this post
    Hi,
    We are having the same problem with IE6 and FireFox 3.0.7.  We are using Sitefinity version 3.5 sp1.  When did the fix come out? 

    Since we are very close to going live, we cannot upgrade at this moment - is the workaround for extending the default ContentHttpHandler our only option to support this function on these browsers?

    Thanks,
    Diana
  10. Marko
    Marko avatar
    148 posts
    Registered:
    30 Jul 2008
    08 Apr 2009
    Link to this post
    Hi Diana,

    The December update they were talking about was delayed until later, I believe, and we never got around to installing it.  I hope that it was fixed with ver. 3.6, but I don't know....   I'm waiting for the next patch for 3.6 which is supposed to come out sometime in April, and then I'll update to the latest version. 

    Anybody out there with 3.6 who can tell us what happens when you try and open http://whatever....sflb.ashx files in FireFox on Mac?
  11. Diana
    Diana avatar
    16 posts
    Registered:
    26 Nov 2008
    08 Apr 2009
    Link to this post
    Hi Marko

    Did you try extending the contentHttpHandler?  If so, did it work? I'm about to try it since our customer needs a fix by today. 

    By the way, I forgot to mention that we are reproducing this problem in Windows.  The latest IE and Firefox work ok, but it is the earlier versions that we need to support which do not work.

    Thanks,
    Diana
  12. Marko
    Marko avatar
    148 posts
    Registered:
    30 Jul 2008
    08 Apr 2009
    Link to this post
    No, i didn't try to implement the contentHttpHandler.  I was waiting on the update (which was late) and then I got too busy with other stuff. :-)
  13. Chris
    Chris avatar
    57 posts
    Registered:
    12 Nov 2008
    08 Apr 2009
    Link to this post
    With SF3.6 the issue was fixed, it's now working properly in any browser I tested.
  14. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    09 Apr 2009
    Link to this post
    Hi Chris,

    I am glad everything is fine. I just want to follow up here, with a feature that you might use in Sitefinity 3.6 - How to use the real extensions for the items in the Images and Documents module.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Register for webinar
14 posts, 0 answered