| java.lang.Object org.sakaiproject.umem.tool.ui.Export
Export | public class Export (Code) | | |
getFileName | public static String getFileName(String prefix)(Code) | | Gets the filename for the export
Parameters: prefix - Filenameprefix The appropriate filename for the export |
protectAgainstInstantDeletion | public static void protectAgainstInstantDeletion(HttpServletResponse response)(Code) | | Try to head off a problem with downloading files from a secure HTTPS
connection to Internet Explorer. When IE sees it's talking to a secure
server, it decides to treat all hints or instructions about caching as
strictly as possible. Immediately upon finishing the download, it throws
the data away. Unfortunately, the way IE sends a downloaded file on to a
helper application is to use the cached copy. Having just deleted the
file, it naturally isn't able to find it in the cache. Whereupon it
delivers a very misleading error message like: "Internet Explorer cannot
download roster from sakai.yoursite.edu. Internet Explorer was not able
to open this Internet site. The requested site is either unavailable or
cannot be found. Please try again later." There are several ways to turn
caching off, and so to be safe we use several ways to turn it back on
again. This current workaround should let IE users save the files to
disk. Unfortunately, errors may still occur if a user attempts to open
the file directly in a helper application from a secure web server. TODO
Keep checking on the status of this.
|
|
|