They need to upload huge files to ftp, because of the limitation of the plan, I have partially written and copy code to make this work. to use an external php fix this problem. code snippet 1: jQuery/javascript:
<script>
$(document).ready(function(){
$('#IDFormField_fileupload_0').change(function(){
var file = this.files[0];
name = file.name;
size = file.size;
type = file.type;
//your validation
});
$('#IDFormField_fileupload_0').change(function(){
var formData = new FormData($('form')[0]);
$.ajax({
url: 'http://www.externalurl.com/5.php', //server script to process data
crossDomain: true,
type: 'POST',
xhr: function() { // custom xhr
var myXhr = $.ajaxSettings.xhr();
if(myXhr.upload){ // check if upload property exists
myXhr.upload.addEventListener('progress',progressHandlingFunction, false); // for handling the progress of the upload