Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
photos
Commits
2021f850
Commit
2021f850
authored
Jul 26, 2014
by
Tobias Reich
Browse files
Skip upload of unsupported files
parent
cf3eda60
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
assets/js/upload.js
View file @
2021f850
...
...
@@ -58,6 +58,14 @@ upload = {
var
albumID
=
album
.
getID
(),
process
=
function
(
files
,
file
)
{
if
(
file
.
supported
===
false
)
{
// Skip file
if
(
file
.
next
!==
null
)
process
(
files
,
file
.
next
);
return
false
;
}
var
formData
=
new
FormData
(),
xhr
=
new
XMLHttpRequest
(),
pre_progress
=
0
,
...
...
assets/min/main.js
View file @
2021f850
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment