Hello. When I upload large files like video, webix send file, but doesent send target and other params.What can be cause of that problem?
Check server side configuration. There can be a limit on max POST size, so any data beyond those limit will be truncated and not accessible to the server-side scripts.
Hello,
FileManager does not split large files and always sends them as they are. Most probably data are not sent due to server settings. In case of php, these settings are post_max_size and upload_max_filesize in php.ini.
There is onBeforeFileAdd event of Uploader that is called before file is added into “files” collection for upload.
filemanager.getUploader().attachEvent("onBeforeFileAdd", function(file){
var size = file.size;
// if size is larger than allowed,
// use own script to split a file
if( ... ){
// your code
return false;
}
return true;
});
Thx for advice. filemanager.attachEvent(“onBeforeFileAdd”, cb) doesn’t work for me , but
filemanager.attachEvent(“onItemClick”,cb) works fine.
Sorry, I’ve corrected the snippet. There should be filemanager.getUploader().attachEvent(“onBeforeFileAdd”, func);
I found the reason. The file must be in the end of the query, otherwise my bodyParser (skipper) doesn’t see other params