DMXzone File System Connector Support Product Page

Answered

Delete Files from Folder List

08 Feb 2017 15:14:05 Andres Gonzalez Michaca posted:
Hello, I wonder how can i delete a file from a folder list?

I've trying sending the {{path}} to a server action (File Remove) with a executor and got Internal Server Error.

I've PHP 5.6.28

Is there a easy way to do that?

Thanks!

Replies

Replied 08 Feb 2017 15:38:44
08 Feb 2017 15:38:44 Teodor Kuduschiev replied:
Hello,
Please provide a link to the page where you receive the internal error and make sure to enable the debug option in server connect settings.
Replied 08 Feb 2017 16:03:31
08 Feb 2017 16:03:31 Andres Gonzalez Michaca replied:
Hello this is the error and the link to:

(function(){var c=0;if("undefined"!==typeof CustomEvent&&"function"===typeof window.dispatchEvent){var a=function(a){try{if("object"===typeof a&&(a=JSON.stringify(a)),"string"===typeof a)return window.dispatchEvent(new CustomEvent("lprequeststart",{detail:{data:a,requestID:++c}})),c}catch(f){}},b=function(a){try{window.dispatchEvent(new CustomEvent("lprequestend",{detail:a}))}catch(f){}};"undefined"!==typeof XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.send&&(XMLHttpRequest.prototype.send=
function(c){return function(f){var d=this,e=a(f);e&&d.addEventListener("loadend",function(){b({requestID:e,statusCode:d.status})});return c.apply(d,arguments)}}(XMLHttpRequest.prototype.send));"function"===typeof fetch&&(fetch=function(c){return function(f,d){var e=a(d),g=c.apply(this,arguments);if(e){var h=function(a){b({requestID:e,statusCode:a&&a.status})};g.then(h)["catch"](h)}return g}}(fetch))}})();
(function(){if("undefined"!==typeof CustomEvent){var c=function(a){if(a.lpsubmit)return a;var b=function(){try{this.dispatchEvent(new CustomEvent("lpsubmit"))}catch(k){}return a.apply(this,arguments)};b.lpsubmit=!0;return b};window.addEventListener("DOMContentLoaded",function(){if(document&&document.forms&&0<document.forms.length)for(var a=0;a<document.forms.length;++a)document.forms[a].submit=c(document.forms[a].submit)},!0);document.createElement=function(a){return function(){var b=a.apply(this,
arguments);b&&"FORM"===b.nodeName&&b.submit&&(b.submit=c(b.submit));return b}}(document.createElement)}})();

Replied 09 Feb 2017 08:16:12
09 Feb 2017 08:16:12 Teodor Kuduschiev replied:
The error on your page is that the path, used with the delete file is NULL, which means it is nor properly configured. Are you sure you selected it properly using the data override option, when calling the executor?
Replied 09 Feb 2017 12:07:23
09 Feb 2017 12:07:23 Andres Gonzalez Michaca replied:
Yes that part was missing, Now works perfect.


Thank you!

Reply to this topic