witten
/
luminotes
Archived
1
0
Fork 0
Commit Graph

11 Commits

Author SHA1 Message Date
Dan Helfman 23b3884e83 Rewrote upload code to do progress bar updating from the UI via polling, rather than streaming the progress bar ticks from the server.
Still to do: Rewrite import code to do something similar, and refactor unit tests accordingly.
2009-03-19 16:52:53 -07:00
Dan Helfman e96235b197 Introduced cache-busting code to make pages update more reliably after a new release.
Added initial (untested) support for Internet Explorer 8 beta.
2009-02-11 01:58:14 -08:00
Dan Helfman 489cc08783 Safari/Chrome: Uploading files now works reliably instead of just once. Apparently WebKit caches iframe src URLs! 2008-10-08 17:09:13 -07:00
Dan Helfman 092f3ff9c6 Removed Wiki.js.Upload_pulldown.shutdown() "force" flag as it's redundant if this.uploading is set accordingly.
Make IE 6 and 7 actually stop uploading a file when the cancel button is clicked.
Ignoring blank filename renames.
2008-02-25 21:56:33 +00:00
Dan Helfman fb7655707e More defensive programming. 2008-02-25 07:19:15 +00:00
Dan Helfman e6ff9203f3 Fix for a quota error being kicked off from each of the progress bar iframe
and the upload iframe, thereby causing one of them to hit a null
frame.pulldown member in IE 6 and throw a JavaScript error.
2008-02-25 07:13:12 +00:00
Dan Helfman e283151a9b Visually truncating really long filenames. 2008-02-25 03:23:50 +00:00
Dan Helfman 4150811d9e Many more controller.Files unit tests. 2008-02-23 22:17:02 +00:00
Dan Helfman 7b8f6bd6e5 Improved error reporting in the controller.Files.upload() method. Now
correctly displays an error to the user when uploading without a filename or
with an invalid file.
2008-02-21 19:39:03 +00:00
Dan Helfman fd0e91ea39 Implemented quota enforcement when uploading a file. This occurs in two places:
1. In progress(), around the time when the file starts uploading. This causes
an upload that's too large to bail before the whole file uploads, but the
quota calculation is only an estimate and relies on the client actually
calling progress().

2. In upload(), when the file finishes uploading. This quota calculation is
exact, but only happens after the entire upload completes.
2008-02-20 20:21:54 +00:00
Dan Helfman f6c5071099 Moved HTML streaming progress bar code into view/ where it belongs. 2008-02-19 21:27:14 +00:00