Commits

Bastian Blank committed 3000378

Comments

Comments (0)

Files changed (10)

bepasty/static/app/js/fileuploader.js

                 return Math.round(size * 10) / 10 + " " + suffix[tier];
             }
 
+            // Add one paragraph per file
             $.each(data.files, function (index, file) {
                 var node = $('<p/>')
                     .text(file.name + " (" + humansize(file.size) + ")");
 
         .on('fileuploadsubmit', function (e, data) {
             var $this = $(this);
+            // Create new item
             $.ajax({
                 type: 'POST',
                 url: '/+upload/new',
                 data: JSON.stringify({
                     filename: data.files[0].name,
-                size: data.files[0].size,
-                type: data.files[0].type
+                    size: data.files[0].size,
+                    type: data.files[0].type,
                 }),
                 contentType: 'application/json',
                 success: function (result) {
             $(data.context.children()[index])
                 .append('<br>')
                 .append('<strong>' + file.error + '</strong>');
-	});
+        });
 });

bepasty/static/jquery.fileupload/css/jquery.fileupload-ui.css

File contents unchanged.

bepasty/static/jquery.fileupload/img/loading.gif

Old
Old image
New
New image

bepasty/static/jquery.fileupload/img/progressbar.gif

Old
Old image
New
New image

bepasty/static/jquery.fileupload/js/jquery.fileupload-process.js

File contents unchanged.

bepasty/static/jquery.fileupload/js/jquery.fileupload-validate.js

File contents unchanged.

bepasty/static/jquery.fileupload/js/jquery.fileupload.js

File contents unchanged.

bepasty/static/jquery.fileupload/js/jquery.iframe-transport.js

File contents unchanged.

bepasty/static/jquery.fileupload/js/vendor/jquery.ui.widget.js

File contents unchanged.

bepasty/storage/__init__.py

 
 
 def create_storage(app):
+    """
+    Load specified storage and return the object.
+    """
     storage = importlib.import_module('.' + app.config['STORAGE'], __name__)
     return storage.Storage(app)