Permalink
Browse files

Adds max size file warning

  • Loading branch information...
1 parent 75f98f6 commit b820ec9c63e60afba54cd65c1054ca5f038a1d14 Ryan J Daw committed Feb 19, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/utils.coffee
View
@@ -282,6 +282,9 @@ exports.archive = (path) ->
path: path
type: "Directory"
filter: () ->
+ if (@type == 'File') and (@size >= 5*1000*1000)
+ console.log "File #{@path} (#{@size} bytes) exceeds 5MB maximum and will not be uploaded."
+ return false
return !/^[.]/.test @basename
mode: "0755"

0 comments on commit b820ec9

Please sign in to comment.