Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "UploaderJS",
"version": "0.9.0",
"version": "0.9.3",
"main": "uploader.js",
"ignore": [
"**/.*",
Expand All @@ -9,4 +9,4 @@
"package.json",
".gitignore"
]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "UploaderJS",
"version": "0.9.0",
"version": "0.9.3",
"description": "Cross browser file uploading made easy.",
"main": "Gruntfile.js",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions uploader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* UploaderJS v0.9.0
* UploaderJS v0.9.3
* https://github.com/tamaspap/uploader
*
* Copyright 2014, Pap Tamas
Expand Down Expand Up @@ -817,8 +817,7 @@


// Check if file type is accepted
if (allowedExtensions && $.inArray("." + fileExtension, allowedExtensions) < 0) {

if (allowedExtensions && !new RegExp('\.'+ fileExtension, 'i').test(allowedExtensions.join())) {
// Invalid file type
errors.push({
code: 1,
Expand Down
4 changes: 2 additions & 2 deletions uploader.min.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions uploader/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@


// Check if file type is accepted
if (allowedExtensions && $.inArray("." + fileExtension, allowedExtensions) < 0) {

if (allowedExtensions && !new RegExp('\.'+ fileExtension, 'i').test(allowedExtensions.join())) {
// Invalid file type
errors.push({
code: 1,
Expand Down
2 changes: 1 addition & 1 deletion uploader/uploader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* UploaderJS v0.9.0
* UploaderJS v0.9.3
* https://github.com/tamaspap/uploader
*
* Copyright 2014, Pap Tamas
Expand Down