Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- processSelectedFiles: function(files) {
- for (var file in files) {
- if (YAHOO.lang.hasOwnProperty(files, file)) {
- file = files[file];
- }
- if (file.size > this.uploadLimit()) {
- if (this.size > 123456) {
- var largeUpload = window.confirm("This is a large file, are you sure you still want to upload?");
- if (!largeUpload) {
- this.cancelledFiles.push(file);
- return false;
- }
- }
- if (this.simple || file.size > this.uploadFileLimit()) {
- this.cancelledFiles.push(file);
- return false;
- }
- else {
- this.forcedFileUpload = true;
- }
- }
- $("queue").show();
- file.size = (file.size / 1000).toFixed(0) + " KB";
- var html = "<tr id='#{id}' class='queued'><td class='name'>#{name}<span class='progress'><img class='filler' style='width:0px;' src='/sitecore/shell/Themes/Standard/Images/Progress/filler_media.png' alt='' /></span></td><td class='size'>#{size}</td><td class='alt'><input class='scFont alt' type='text' id='#{id}_alt' /></td></tr>".interpolate(file);
- $$("#queue tbody")[0].insert({ bottom: html });
- if (!this.simple) {
- $("UploadButton").show();
- }
- this.queue.push(file);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement