accept only images (front end)

This commit is contained in:
2015-12-25 21:32:24 +01:00
parent 59e07a65ff
commit af10c675d3

View File

@@ -12,11 +12,11 @@ oSpot.pageInit = function(asHash)
.attr('data-url', self.getActionLink('upload'))
.fileupload({
dataType: 'json',
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
done: function (e, data) {
var $Status = $('#status');
$.each(data.result.files, function(iKey, oFile) {
$Status.append(file.name+" uploaded succesfully");
$Status.append($('<p>').text(oFile.name+" uploaded succesfully"));
});
},
progressall: function (e, data) {