Novice in obvestila

if ($ this-> form) {
$ form = $ this-> form;
} else {
$ form = new Fichier Form UploadForm ();
}

$ form-> setView ($ this)
-> setMethod ('post')
-> setAction ($ this-> uri ('/ api / file /'));
?>

 





_ ('Choisir l'image')?> ...







 










 



{% for (var i=0, file; file=o.files[i]; i++) { %}


{% if (file.error) { %}
{%=file.error%}

{% } else { %}

{%=file.name%}

{%=o.formatFileSize(file.size)%}



{% if (!o.options.autoUpload) { %}

{% } %}

{% } %}


{% } %}




{% for (var i=0, file; file=o.files[i]; i++) { %}


{% if (file.error) { %}
{%=file.error%}



{% } %}

{% } %}


var evaUpload = function(){

var uploader = $("#singlefileupload");
uploader.fileupload({
url : '/api/file/',
dataType: 'json',
autoUpload: true,
acceptFileTypes: /(.|/)(gif|jpe?g|png)$/i,
maxNumberOfFiles : 1,
fileInput : uploader.find("input:file"),
maxFileSize: 5000000,
previewMaxWidth : 200,
previewMaxHeight : 200
});


uploader.bind('fileuploadfailed', function (e, data) {
//eva.p(data);
});
uploader.bind('fileuploadadded', function (e, data) {
if(!data.files.valid) {
//uploader.find('.files .cancel').click();
}
});
uploader.bind('fileuploadchange', function (e, data) {
//uploader.find('.files').empty();
});

//Fix firefox input disable attr issue
uploader.find("input:file").removeAttr('disabled');
}
eva.ready(function(){
var libs = [
"/lib/js/jstemplates/tmpl.js",
"/lib/js/loadimage/load-image.js",
"/lib/js/upload/js/vendor/jquery.ui.widget.js",
"/lib/js/upload/js/jquery.iframe-transport.js",
"/lib/js/upload/js/jquery.fileupload.js",
"/lib/js/upload/js/jquery.fileupload-fp.js",
"/lib/js/upload/js/jquery.fileupload-ui.js"
];

eva.loadcss(eva.s(["/lib/js/upload/css/jquery.fileupload-ui.css"]));
eva.loader(eva.s(libs), function(){
evaUpload();
});
});

 
Prihajajoča prireditev
24 ur klekljanja
ISKALNIK PO VSEBINI

PROJEKTI
ANKETA
OGLAŠEVANJE