Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

PUBLIC / surfer-okd

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 3df9f8a6 authored 7 years ago by Johannes Zellner's avatar Johannes Zellner
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

Do not error if a user tries to upload a file without a type

1 parent 19efa5bc
Hide whitespace changes
Inline Side-by-side
Showing with 3 additions and 0 deletions
  • frontend/js/app.js
frontend/js/app.js
View file @3df9f8a
......@@ -136,6 +136,9 @@ function uploadFiles(files) {
app.uploadStatus.percentDone = 0;
asyncForEach(files, function (file, callback) {
// do not handle directories (file.type is empty in such a case)
if (file.type === '') return callback();
var path = encode(sanitize(app.path + '/' + (file.webkitRelativePath || file.name)));
var formData = new FormData();
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
  • Please register or sign in to post a comment