Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #34 from adobe/nj/prevent-folder-client
Browse files Browse the repository at this point in the history
Prevent folders and non-zip files from being uploaded from the client side
  • Loading branch information
dangoor committed Apr 10, 2013
2 parents 5dce9e6 + 4016038 commit 65cc942
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ $(function () {
$(".extension-list").html(content);
});
});
},
accept: function (file, done) {
if (!file.name.match(/\.zip$/i)) {
done("Extension packages must be zip files.");
} else {
done();
}
}
};
});

0 comments on commit 65cc942

Please sign in to comment.