| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/admin/html/assets/javascript/engine/extensions/ |
Upload File : |
"use strict";gx.extensions.module("ajax_file_upload",[jse.source+"/vendor/blueimp-file-upload/jquery.fileupload.min.js"],function(e){var o=$(this),i={auto:!0},t=$.extend(!0,{},i,e),n={},r=function(e){if(!e.is("input[type=file]"))throw"$.upload() method is supported only in input[type=file] elements."},u=function(e){var i=o.get(0).files[0];l(i)&&o.trigger("validate",[i])&&(o.fileupload({url:t.url,dataType:"json"}),o.fileupload("send",{files:[i]}).done(function(o,i,t,n){jse.core.debug.info("AJAX File Upload Success Response:",o,i),"function"==typeof e&&e(o)}).error(function(e,o,i){jse.core.debug.error("AJAX File Upload Failure Response:",e,o,i)}).complete(function(e,i,t){o.fileupload("destroy")}))},l=function(e){try{if(void 0===e)throw"No file was selected for upload.";return!0}catch(o){return jse.core.debug.error(o),!1}};return n.init=function(e){return void 0===t.url||""===t.url?void jse.core.debug.error('Upload URL was not provided for "ajax_file_upload" extension.'):(t.auto===!0?o.fileupload({dataType:"json",url:t.url,done:function(e,o){$(this).trigger("upload",[o.result])}}):$.fn.extend({upload:function(e){r($(this)),u(e)},validate:function(){return r($(this)),l(this.files[0])}}),void e())},n});