This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.
I think it would be a great feature if the editor was able to detect if a file a user is trying to upload without having to upload it to the server. This would save a little bandwidth and make it less frustrating for users.
The only thing I know of for ie that you can do to check filesize before a transfer is using filesystem object which needs activex which most people leave disabled...
var fso, f1;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.GetFile("c:\\test.txt");
The following is a snippet I had in a directory full of snippets, if I can find the source of the snippet I will update it (though relying on activex is kinda dookie so it is probably pointless to mention)...
Code:
if ($.browser.msie) {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var fPath = $("#" + fileid)[0].value;
var objFile = fso.getFile(fPath);
var fSize = objFile.size;
fileSize = fSize / 1048576;
}
IE is often problematic, can't it just be done so that it works for everyone using a proper browser but reverts to the current behavior for people using IE?
IE is often problematic, can't it just be done so that it works for everyone using a proper browser but reverts to the current behavior for people using IE?
I think if anything is to be done to it at all that this is the best way to go about it. Generally my upstream is fast enough where it doesn't matter to me personally but for those with slower connections and for people with weak servers this has the capability to reduce waste on both server and client sides I suppose.