You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the server php and the sumit.php purposed with following code:
html:
Send File
js to process this button:
$scope.addPEDFile = function(isValid) {
console.log('$scope.pond', $scope.pond);
if (isValid){
$scope.arquivos = $scope.pond.getFiles();
$http({
method : 'POST',
url : 'api/filepond/submit.php',
processData: false,
transformRequest: function (data) {
var formData = new FormData();
formData.append("filepond[]", $scope.arquivos[0].file, $scope.arquivos[0].file.name);
return formData;
},
headers: {
'Content-Type': undefined
}
})
$scope.pond.removeFile($scope.arquivos[0].id);
}
}
Executing that button, the file inserted in the pond is copied from the TRANSFER_DIR to the UPLOAD_DIR and in the last line ($scope.pond.removeFile($scope.arquivos[0].id);) it was supposed to clean the pond area and delete the TRANSFER_DIR copy of the file, but it only clean the pond area, the file still in the TRANSFER_DIR. Any idea how to solve it?
The text was updated successfully, but these errors were encountered:
I'm using the server php and the sumit.php purposed with following code:
html:
Send File
js to process this button:
$scope.addPEDFile = function(isValid) {
console.log('$scope.pond', $scope.pond);
if (isValid){
$scope.arquivos = $scope.pond.getFiles();
$http({
method : 'POST',
url : 'api/filepond/submit.php',
processData: false,
transformRequest: function (data) {
var formData = new FormData();
formData.append("filepond[]", $scope.arquivos[0].file, $scope.arquivos[0].file.name);
return formData;
},
headers: {
'Content-Type': undefined
}
})
$scope.pond.removeFile($scope.arquivos[0].id);
}
}
Executing that button, the file inserted in the pond is copied from the TRANSFER_DIR to the UPLOAD_DIR and in the last line ($scope.pond.removeFile($scope.arquivos[0].id);) it was supposed to clean the pond area and delete the TRANSFER_DIR copy of the file, but it only clean the pond area, the file still in the TRANSFER_DIR. Any idea how to solve it?
The text was updated successfully, but these errors were encountered: